Module: Trax::Controller::Authorization::Pundit::Actions::Update
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/trax/controller/authorization/pundit/actions/update.rb
Instance Method Summary collapse
Instance Method Details
#update_resource(object, attributes = {}) ⇒ Object
9 10 11 12 13 |
# File 'lib/trax/controller/authorization/pundit/actions/update.rb', line 9 def update_resource(object, attributes={}) object.assign_attributes(*attributes) (object) object.save end |