Method: ActiveModel::Datastore#update
- Defined in:
- lib/active_model/datastore.rb
#update(params) ⇒ Object
180 181 182 183 184 185 186 187 188 |
# File 'lib/active_model/datastore.rb', line 180 def update(params) assign_attributes(params) return unless valid? run_callbacks :update do entity = build_entity self.class.retry_on_exception? { CloudDatastore.dataset.save entity } end end |