Module: Brief::Model::Persistence
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/brief/model/persistence.rb
Instance Method Summary collapse
Instance Method Details
#set_data_attribute(attribute, value) ⇒ Object
5 6 7 8 9 |
# File 'lib/brief/model/persistence.rb', line 5 def set_data_attribute(attribute, value) document.data.send("#{attribute}=", value) document.save value end |