diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-19 12:19:58 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-19 12:19:58 -0700 |
commit | 0bdef30f35501953ffdcb34f1c8d3a1e23f9434d (patch) | |
tree | df515a0c3b6613ac200c20bba2e808ebd56991fc /railties/lib | |
parent | e2ed1a1ca4f2dbfb9eb2c31fd1ddd45562afef25 (diff) | |
download | rails-0bdef30f35501953ffdcb34f1c8d3a1e23f9434d.tar.gz rails-0bdef30f35501953ffdcb34f1c8d3a1e23f9434d.tar.bz2 rails-0bdef30f35501953ffdcb34f1c8d3a1e23f9434d.zip |
Lazy-require Kernel#silence_warnings
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/plugin.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index e66166306a..49ec5c7fba 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -1,5 +1,3 @@ -require 'active_support/core_ext/kernel/reporting' - module Rails # The Plugin class should be an object which provides the following methods: # @@ -141,6 +139,7 @@ module Rails def evaluate_init_rb(initializer) if has_init_file? + require 'active_support/core_ext/kernel/reporting' silence_warnings do # Allow plugins to reference the current configuration object config = initializer.configuration |