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:
parent
4c3dbcecb6
commit
e40340e3f4
|
@ -50,6 +50,10 @@ class Photo < ActiveRecord::Base
|
|||
self.tags = ts
|
||||
end
|
||||
|
||||
def _delete
|
||||
0
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue