Method: Recorder::Command#update_data
- Defined in:
- lib/recorder/command.rb
#update_data(id, attributes) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/recorder/command.rb', line 52 def update_data(id, attributes) data = Data.find(id) data.update_attributes! attributes data.reload end |