lib/alchemy/devise/engine.rb
require "alchemy_cms"
require "devise"
module Alchemy
module Devise
class Engine < ::Rails::Engine
isolate_namespace Alchemy
engine_name "alchemy_devise"
initializer "alchemy_devise.user_class", before: "alchemy.userstamp" do
Alchemy.user_class_name = "Alchemy::User"
end
initializer "alchemy_devise.assets" do |app|
app.config.assets.precompile += [
"alchemy-devise.css"
]
end
config.to_prepare do
require_relative "../../../app/controllers/alchemy/base_controller_extension"
end
end
end
end