lib/admin_it/engine.rb in admin_it-1.2.0 vs lib/admin_it/engine.rb in admin_it-1.2.1

- old
+ new

@@ -11,17 +11,18 @@ ARGV.include?('db:migrate') Dir[File.join(AdminIt.config.root, '**', '*.rb')].each do |file| require file end end -# Assets.register(Rails.application.assets) + # Assets.register(Rails.application.assets) ActionController::Base.module_eval do - prepend_view_path 'lib/views' + prepend_view_path File.join('lib', 'views') end end config.app_middleware.insert_after(Rack::ETag, Middleware) + config.assets.precompile += ['admin_it/index.js', 'admin_it/index.css'] end def self.config config = AdminIt::Config yield config if block_given?