Method: Rails::Generators::ActiveModel#update
- Defined in:
- railties/lib/rails/generators/active_model.rb
#update(params = nil) ⇒ Object
PATCH/PUT update
64 65 66 |
# File 'railties/lib/rails/generators/active_model.rb', line 64 def update(params = nil) "#{name}.update(#{params})" end |