Permalink
Browse files

Run the block passed to #run first when initializing

  • Loading branch information...
1 parent b598baf commit c117e8e848f2743bd9b346ccdc0e41e5987699cf Yehuda Katz + Carl Lerche committed Jun 25, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/initializer.rb
@@ -101,6 +101,7 @@ def self.default
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

0 comments on commit c117e8e

Please sign in to comment.