-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
Not sure if it could be an issue but here is.
f=Foo.new
f.persisted?
=> false
f.delete
=> true #also for #remove & #destroy
f.save
=> RuntimeError: can't modify frozen Hash ...
....
I think it should return false or raise exception when trying to delete a not persisted object and possibly not to freeze it.