require "devise" require "identity/mixins/user" require_relative "./devise_config" require_relative "./view_helper" module Identity class Engine < ::Rails::Engine initializer "identity-views" do |app| ActionView::Base.include Identity::ViewHelper end initializer "identity-admin" do |app| ActiveAdmin.application.load_paths.unshift(File.dirname(__FILE__) + "/admin") end initializer "identity-model" do unless Identity.user_class.is_a?(Identity::Mixins::User) Identity.user_class.include(Identity::Mixins::User) end end end end