Module: Iron::WebPage
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/controllers/concerns/iron/web_page.rb
Instance Method Summary collapse
Instance Method Details
#set_content_type ⇒ Object
10 11 12 |
# File 'app/controllers/concerns/iron/web_page.rb', line 10 def set_content_type @content_type = Iron::ContentType.web_published.find_by_handle!(params[:content_type]) end |
#set_entry ⇒ Object
14 15 16 |
# File 'app/controllers/concerns/iron/web_page.rb', line 14 def set_entry @entry = @content_type.entries.find_by!(route: params[:route]) end |