Sha256: 0884e280f5dac5c4009b709a3a6605a9ac7b12fb6546a9573d9f7e2cbf5c2067
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
module RailsAdminSettings class Engine < ::Rails::Engine rake_tasks do require File.expand_path('../tasks', __FILE__) end initializer 'RailsAdminSettings Install after_filter' do |app| require File.dirname(__FILE__) + '/../../app/models/rails_admin_settings/setting.rb' if defined?(ActionController) and defined?(ActionController::Base) ActionController::Base.class_eval do after_filter { Settings.unload! } end end RailsAdminSettings.migrate! end end end
Version data entries
3 entries across 3 versions & 1 rubygems