Add method to Photo needed for check_box.

The _delete method tell rails that the delete checkbox must be
unchecked at first.
This commit is contained in:
Rémi Vanicat 2010-11-17 17:50:25 +01:00
parent 4c3dbcecb6
commit e40340e3f4

View file

@ -50,6 +50,10 @@ class Photo < ActiveRecord::Base
self.tags = ts self.tags = ts
end end
def _delete
0
end
protected protected