Sha256: 1a51add7ea4a1ab7d7cfa99e6f4b36e5a5625c2c165f455a2ff37546f1ad606b
Contents?: true
Size: 808 Bytes
Versions: 1
Compression:
Stored size: 808 Bytes
Contents
# module AdminIt # class Engine < Rails::Engine # paths['app/controllers'] = File.join('lib', 'admin_it', 'controllers') config.to_prepare do Rails.application.config.i18n.load_path += Dir[Engine.root.join('lib', 'admin_it', 'locales', '*.yml')] unless File.basename($PROGRAM_NAME) == 'rake' && ARGV.include?('db:migrate') Dir[File.join(AdminIt.config.root, '**', '*.rb')].each do |file| require file end end # Assets.register(Rails.application.assets) ActionController::Base.module_eval do prepend_view_path 'lib/views' end end config.app_middleware.insert_after(Rack::ETag, Middleware) end def self.config config = AdminIt::Config yield config if block_given? config end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin_it-1.2.0 | lib/admin_it/engine.rb |