Class: Rails::Configuration
- Inherits:
-
Object
- Object
- Rails::Configuration
- Defined in:
- lib/conf/postboot.rb
Instance Method Summary collapse
- #database_configuration_file ⇒ Object
-
#environment_path ⇒ Object
The path to the current environment’s file (development.rb, etc.).
Instance Method Details
#database_configuration_file ⇒ Object
17 18 19 |
# File 'lib/conf/postboot.rb', line 17 def database_configuration_file File.join(root_path, 'config', environment, 'database.yml') end |
#environment_path ⇒ Object
The path to the current environment’s file (development.rb, etc.). By default the file is at config/environments/#{environment}.rb
.
23 24 25 |
# File 'lib/conf/postboot.rb', line 23 def environment_path "#{root_path}/config/#{environment}/environment.rb" end |