Sha256: 21ba5714c69530fffa929178a63060b9df74168512e093103692b6b59937954c

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

require "devise"
require "identity/devise_config"
require "identity/view_helper"

module Identity
  class Engine < ::Rails::Engine
    initializer "identity-views" do |app|
      ActionView::Base.include Identity::ViewHelper
    end

    initializer "identity-admin" do |app|
      if defined?(ActiveAdmin)
        ActiveAdmin.application.load_paths.unshift(File.dirname(__FILE__) + "/admin")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
anadea-identity-0.5.4 lib/identity/engine.rb
anadea-identity-0.5.3 lib/identity/engine.rb