Method: Scrivito::BasicWidget#update
- Defined in:
- app/cms/scrivito/basic_widget.rb
#update(attributes) ⇒ Object
Updates the attributes of this Widget. See Obj.create for a detailed overview of how to set attributes.
170 171 172 173 |
# File 'app/cms/scrivito/basic_widget.rb', line 170 def update(attributes) obj.update(_widget_pool: { self => attributes }) reload end |