Sha256: 033c22e5dd8d6a5f2f8fa0523948041bc6b0d4e4a510d39fa2892d9f66ef547d
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 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 initializer "serve static assets" do |app| app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public" end 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.17} 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
3 entries across 3 versions & 1 rubygems