method
env_with_configs
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::DatabaseConfigurations
env_with_configs(env = nil)private
No documentation available.
# File activerecord/lib/active_record/database_configurations.rb, line 140
def env_with_configs(env = nil)
if env
configurations.select { |db_config| db_config.env_name == env }
else
configurations
end
end