Loads the environment specified by Configuration#environment_path, which is typically one of development, test, or production.
Source Code
# File initializer.rb, line 183 def load_environment silence_warnings do return if @environment_loaded @environment_loaded = true 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
<code/>and<pre/>for code samples.