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
1 changed files with 4 additions and 0 deletions
|
@ -49,6 +49,10 @@ class Photo < ActiveRecord::Base
|
|||
end
|
||||
self.tags = ts
|
||||
end
|
||||
|
||||
def _delete
|
||||
0
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
|
|
Loading…
Reference in a new issue