Module: Spina::Frontend
- Extended by:
- ActiveSupport::Concern
- Included in:
- PagesController
- Defined in:
- app/controllers/concerns/spina/frontend.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/concerns/spina/frontend.rb', line 12 def show if should_skip_to_first_child? redirect_to first_live_child.try(:materialized_path) and return elsif page.link_url.present? redirect_to Spina::Current.page.link_url and return end render_with_template(page) end |