lib/ecm/staff/engine.rb in ecm_staff-0.0.1.pre vs lib/ecm/staff/engine.rb in ecm_staff-0.0.2.pre
- old
+ new
@@ -1,14 +1,17 @@
module Ecm
module Staff
class Engine < ::Rails::Engine
initializer :ecm_staff_engine do
ActiveAdmin.setup do |config|
- config.load_paths << File.join(self.root, 'app/admin')
- # config.load_paths.unshift File.join(self.root, 'app/admin')
+ config.load_paths << File.join(self.root, 'lib/ecm/staff/active_admin')
config.register_stylesheet 'ecm_staff_active_admin.css'
- end if defined?(::ActiveAdmin) # ::ActiveAdmin.setup
+
+ Rails.application.config.assets.precompile += %w(
+ ecm_staff_active_admin.css
+ )
+ end
end # initializer :ecm_staff_engine do
end # class Engine < ::Rails::Engine
end # module Staff
end # module Ecm