Loads the environment specified by Configuration#environment_path, which is
typically one of development, testing, or production.
# File railties/lib/initializer.rb, line 205
def load_environment
silence_warnings do
config = configuration
constants = self.class.constants
eval(IO.read(configuration.environment_path), binding, configuration.environment_path)
(self.class.constants - constants).each do |const|
Object.const_set(const, self.class.const_get(const))
end
end
end