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
- #process_show(**options) ⇒ Object
- #render_show(model, **_options) ⇒ Object
- #setup_show(**options) ⇒ Object
- #show(**options) ⇒ Object
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(**) current_context(**).show(**) 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, **) 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(**) (**) end |
#show(**options) ⇒ Object
16 17 18 19 20 |
# File 'lib/sn_foil/controller/concerns/show_controller_concern.rb', line 16 def show(**) = setup_show(**) model = process_show(**) render_show(model, **) end |