Sha256: ca1b1859bd2eac7fe9bf93fb7dcea1cad3bfe296ad9b9fb731e6e73344285e29
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
load File.join(Gem.loaded_specs['forgeos_core'].full_gem_path, 'app', 'controllers', 'forgeos', 'application_controller.rb') Forgeos::ApplicationController.class_eval do include RoutesHelper private def page_not_found if @page = Page.find_by_single_key(404) return render(@page, :layout => true, :status => 404) else return render(:text => (I18n.t('page_not_found') || 'page not found'), :layout => false, :status => 404) end end end # Rails Bug fix on Nested inheritance models : Load nested models to use it parent class Carousel WidgetActuality WidgetFaq LinkPage
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forgeos_cms-1.9.1 | app/controllers/forgeos/application_controller.rb |