Class: Spina::ImageCollection
Instance Method Summary
collapse
#image_positions=, #image_tokens=
Instance Method Details
#content ⇒ Object
12
13
14
|
# File 'app/models/spina/image_collection.rb', line 12
def content
self
end
|
#old_update ⇒ Object
16
|
# File 'app/models/spina/image_collection.rb', line 16
alias_method :old_update, :update
|
#update(attributes) ⇒ Object
17
18
19
20
|
# File 'app/models/spina/image_collection.rb', line 17
def update(attributes)
self.images.clear if attributes.reject{|key,value| key == "id" }.blank?
old_update(attributes)
end
|