Skip to content

Commit

Permalink
Defer modification of ActionController::Base to when it is loaded (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlarose authored and pkuczynski committed Jan 6, 2020
1 parent 565b665 commit 0ce94f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

## Unreleased

### New features
### Performance improvements

* Get rid of unused Rails Engine class definition ([#247](https://github.com/railsconfig/config/pull/247))
* Require dry-validation only when schema is specified ([#253](https://github.com/railsconfig/config/pull/253))
* Defer modification of `ActionController::Base` to when it is loaded in Rails integration ([#250](https://github.com/railsconfig/config/pull/250))

### Bug fixes

Expand Down
2 changes: 1 addition & 1 deletion lib/config/integrations/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def preload
# Development environment should reload settings on every request
if ::Rails.env.development?
initializer :config_reload_on_development do
ActionController::Base.class_eval do
ActiveSupport.on_load :action_controller_base do
if ::Rails::VERSION::MAJOR >= 4
prepend_before_action { ::Config.reload! }
else
Expand Down

0 comments on commit 0ce94f0

Please sign in to comment.