module SnFoil::Controller::Concerns::UpdateControllerConcern

Public Instance Methods

process_update(**options) click to toggle source
# File lib/sn_foil/controller/concerns/update_controller_concern.rb, line 28
def process_update(**options)
  current_context(**options).update(**options)
end
render_update(model, **options) click to toggle source
# File lib/sn_foil/controller/concerns/update_controller_concern.rb, line 32
def render_update(model, **options)
  render_change(model, **options)
end
setup_update(**options) click to toggle source
# File lib/sn_foil/controller/concerns/update_controller_concern.rb, line 24
def setup_update(**options)
  setup_options(**options)
end
update(**options) click to toggle source
# File lib/sn_foil/controller/concerns/update_controller_concern.rb, line 18
def update(**options)
  options = setup_update(**options)
  model = process_update(**options)
  render_update(model, **options)
end