Sha256: 5615952b84e3bca15bf6c219f95863cc6bf9745d550345955b3602d19e8b6ba1

Contents?: true

Size: 848 Bytes

Versions: 16

Compression:

Stored size: 848 Bytes

Contents

# Subclass from main ApplicationController, which will subclass from DmCore
#------------------------------------------------------------------------------
class DmForum::ApplicationController < ::ApplicationController
  include ApplicationHelper  

  #--- these are needed to support rendering layouts built for the CMS
  helper    DmCms::RenderHelper
  helper    DmCore::LiquidHelper
  helper    DmCms::PagesHelper
  include   DmCore::RenderHelper

  #before_filter :authenticate_user!

  layout    'forum_templates/forum_list'

  rescue_from ActiveRecord::RecordNotFound, :with => :record_not_found
  
private

  #------------------------------------------------------------------------------
  def record_not_found
    flash[:error] = "The forum or discussion you were looking for could not be found."
    redirect_to forum_root_path
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dm_forum-4.2.3.10 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.9 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.8 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.7 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.6 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.5 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.4 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.3 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.2 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3.1 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.3 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.2.3 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.2.2 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.2.1 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.2 app/controllers/dm_forum/application_controller.rb
dm_forum-4.2.1.5 app/controllers/dm_forum/application_controller.rb