Sha256: 9443a559805135eb58dc23deaae0d8b1245865775cb98d8f32409a182dc9a128

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

module Refinery
  module Authentication
    class Engine < ::Rails::Engine
      include Refinery::Engine

      isolate_namespace Refinery
      engine_name :refinery_authentication

      config.autoload_paths += %W( #{config.root}/lib )

      initializer "register refinery_user plugin" do
        Refinery::Plugin.register do |plugin|
          plugin.pathname = root
          plugin.name = 'refinery_users'
          plugin.version = %q{2.0.0}
          plugin.menu_match = %r{refinery/users$}
          plugin.activity = {
            :class_name => :'refinery/user',
            :title => 'username'
          }
          plugin.url = { :controller => '/refinery/admin/users' }
        end
      end

      before_inclusion do
        [Refinery::ApplicationController, Refinery::AdminController, ::ApplicationHelper].each do |c|
          c.send :include, Refinery::AuthenticatedSystem
        end
      end

      config.after_initialize do
        Refinery.register_extension(Refinery::Authentication)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
refinerycms-authentication-2.0.0 lib/refinery/authentication/engine.rb