Sha256: 177f46587fe0fd3b09f9235e3c0a2d5c97d550a5552c13acb2e6904c1ebf29ae

Contents?: true

Size: 466 Bytes

Versions: 3

Compression:

Stored size: 466 Bytes

Contents

module ActionController
  class Base

    around_filter :prepare_rich_cms

    def prepare_rich_cms
      ::Rich::Cms::Auth.current_controller = self
      yield
    ensure
      ::Rich::Cms::Auth.current_controller = nil
    end

    view_path = File.expand_path "../../../../../../app/views", __FILE__
    if respond_to? :append_view_path
      self.append_view_path view_path
    elsif respond_to? :view_paths
      self.view_paths << view_path
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rich_cms-3.0.2 lib/rich/cms/actionpack/action_controller/base.rb
rich_cms-3.0.1 lib/rich/cms/actionpack/action_controller/base.rb
rich_cms-3.0.0 lib/rich/cms/actionpack/action_controller/base.rb