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

18 lines
468 B
Ruby
Raw Normal View History

2009-11-06 20:21:39 -05:00
require "rails" # In case people require this file directly
2009-06-19 14:27:24 -04:00
2009-11-23 19:10:43 -05:00
RAILS_ENV = (ENV['RAILS_ENV'] || ENV['RACK_ENV'] || 'development').dup unless defined?(RAILS_ENV)
module Rails
class Initializer
class Error < StandardError ; end
def self.run(initializer = nil, config = nil)
if initializer
# Deprecated
else
Rails.application = Class.new(Application)
2009-10-08 18:30:17 -04:00
yield Rails.application.config if block_given?
end
end
end
2009-11-23 19:10:43 -05:00
end