Sha256: 69340349e6d427e0fe75560a8c60f583f2a40986684a7adffc3dcea9af0cbac6

Contents?: true

Size: 1.18 KB

Versions: 6

Compression:

Stored size: 1.18 KB

Contents

require 'devise'
require 'refinerycms-core'
# Attach authenticated system methods to the ::Refinery::ApplicationController
require File.expand_path('../authenticated_system', __FILE__)
[::Refinery::ApplicationController, ::Refinery::ApplicationHelper].each do |c|
  c.class_eval {
    include AuthenticatedSystem
  }
end

module Refinery
  module Authentication

    class Engine < ::Rails::Engine
      config.autoload_paths += %W( #{config.root}/lib )

      config.after_initialize do
        ::Refinery::Plugin.register do |plugin|
          plugin.name = "refinery_users"
          plugin.version = %q{0.9.9}
          plugin.menu_match = /(refinery|admin)\/users$/
          plugin.activity = {
            :class => User,
            :title => 'login'
          }
          plugin.url = {:controller => "/admin/users"}
        end
      end
    end

    class << self
      attr_accessor :root
      def root
        @root ||= Pathname.new(File.expand_path('../../', __FILE__))
      end
    end
  end

  class << self
    attr_accessor :authentication_login_field
    def authentication_login_field
      @authentication_login_field ||= 'login'
    end
  end
end

::Refinery.engines << 'authentication'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-authentication-0.9.9.7 lib/refinerycms-authentication.rb
refinerycms-authentication-0.9.9.5 lib/refinerycms-authentication.rb
refinerycms-authentication-0.9.9.4 lib/refinerycms-authentication.rb
refinerycms-authentication-0.9.9.3 lib/refinerycms-authentication.rb
refinerycms-authentication-0.9.9.2 lib/refinerycms-authentication.rb
refinerycms-authentication-0.9.9.1 lib/refinerycms-authentication.rb