Sha256: 4e84781822615b5a687bea59aa3b10463a910f4bdee7981fc251f8255a7a0d8e

Contents?: true

Size: 607 Bytes

Versions: 1

Compression:

Stored size: 607 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.0 app/controllers/forgeos/application_controller.rb