Sha256: 72094839071246c35dceed26c1878a3be5b3d382668752e7638bd5be9bece4cd

Contents?: true

Size: 339 Bytes

Versions: 14

Compression:

Stored size: 339 Bytes

Contents

module RailsAdminSettings
  class Engine < ::Rails::Engine
    initializer 'RailsAdminSettings Install after_filter' do |app|
      if defined?(ActionController) and defined?(ActionController::Base)
        ActionController::Base.class_eval do
          after_filter { Settings.unload! }
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rails_admin_settings-0.4.2 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.4.1 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.4.0 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.9 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.8 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.7 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.6 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.4 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.3 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.2 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.1 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.3.0 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.2.0 lib/rails_admin_settings/engine.rb
rails_admin_settings-0.1.0 lib/rails_admin_settings/engine.rb