Class: Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/conf/postboot.rb

Instance Method Summary collapse

Instance Method Details

#database_configuration_fileObject



17
18
19
# File 'lib/conf/postboot.rb', line 17

def database_configuration_file
  File.join(root_path, 'config', environment, 'database.yml')
end

#environment_pathObject

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