lib/pbw/engine.rb in pbw-0.0.9 vs lib/pbw/engine.rb in pbw-0.0.10

- old
+ new

@@ -1,6 +1,8 @@ require 'pbw/version' +require 'mongoid' +require 'devise' module Pbw class Engine < ::Rails::Engine isolate_namespace Pbw engine_name 'pbw' @@ -18,27 +20,21 @@ g.assets :false g.helper :false g.javascript_engine :coffee end + config.email_from_address = 'superadmin@localhost' + config.user_lifecycle_class = nil + initializer "check config" do |app| config.mount_at += '/' unless config.mount_at.last == '/' end initializer "static assets" do |app| app.middleware.use ::ActionDispatch::Static, "#{root}/public" end - def self.config(&block) - yield Engine.config if block - Engine.config - end - def self.version Pbw::VERSION - end - - def self.user_lifecycle_class - self.config.user_lifecycle_class || User::Lifecycle end end end