diff options
author | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-25 14:14:21 -0700 |
---|---|---|
committer | Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com> | 2009-06-25 14:32:15 -0700 |
commit | c117e8e848f2743bd9b346ccdc0e41e5987699cf (patch) | |
tree | 1ad4c3aa845ddfe6284a1f809494c4c7a37fc946 | |
parent | b598baf813a85895e1df4e442599170e57d6445c (diff) | |
download | rails-c117e8e848f2743bd9b346ccdc0e41e5987699cf.tar.gz rails-c117e8e848f2743bd9b346ccdc0e41e5987699cf.tar.bz2 rails-c117e8e848f2743bd9b346ccdc0e41e5987699cf.zip |
Run the block passed to #run first when initializing
-rw-r--r-- | railties/lib/initializer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/initializer.rb b/railties/lib/initializer.rb index ef0520d7cc..68c3576fed 100644 --- a/railties/lib/initializer.rb +++ b/railties/lib/initializer.rb @@ -101,6 +101,7 @@ module Rails def self.run(initializer = nil, config = nil) default.config = config if config default.config ||= Configuration.new + yield default.config if block_given? default.run(initializer) end end |