Module: SnFoil::Controller::Concerns::ShowControllerConcern

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/sn_foil/controller/concerns/show_controller_concern.rb

Instance Method Summary collapse

Instance Method Details

#process_show(**options) ⇒ Object



26
27
28
# File 'lib/sn_foil/controller/concerns/show_controller_concern.rb', line 26

def process_show(**options)
  current_context(**options).show(**options)
end

#render_show(model, **_options) ⇒ Object



30
31
32
# File 'lib/sn_foil/controller/concerns/show_controller_concern.rb', line 30

def render_show(model, **_options)
  render model
end

#setup_show(**options) ⇒ Object



22
23
24
# File 'lib/sn_foil/controller/concerns/show_controller_concern.rb', line 22

def setup_show(**options)
  setup_options(**options)
end

#show(**options) ⇒ Object



16
17
18
19
20
# File 'lib/sn_foil/controller/concerns/show_controller_concern.rb', line 16

def show(**options)
  options = setup_show(**options)
  model = process_show(**options)
  render_show(model, **options)
end