Method: Formstack::Model#update
- Defined in:
- lib/formstack/model.rb
#update(new_attributes = {}) ⇒ Object
26 27 28 29 |
# File 'lib/formstack/model.rb', line 26 def update(new_attributes={}) attributes.merge!(stringify_hash_keys(new_attributes)) client.public_send("update_#{client_method}", self[:id], attributes) end |