Module: RailsIron::Loader
- Defined in:
- lib/rails_iron/loader.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/rails_iron/loader.rb', line 5 def self.included(base) base.load_rails end |
Instance Method Details
#load_rails ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rails_iron/loader.rb', line 9 def load_rails unless defined?(Rails) if File.exists?("/task/config/environment.rb") ENV['RAILS_ENV'] ||= "production" require "/task/config/environment" end end end |