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_typeObject



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_entryObject



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