1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/initializer.rb
2009-12-02 11:35:47 -08:00

15 lines
369 B
Ruby

require "rails" # In case people require this file directly
module Rails
class Initializer
class Error < StandardError ; end
def self.run(initializer = nil, config = nil)
if initializer
# Deprecated
else
Rails.application = Class.new(Application)
yield Rails.application.config if block_given?
end
end
end
end