Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1822 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Process erb directives in the database.yml file just like the fixture yaml files

Reported by: duane.johnson@gmail.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 0.13.1
Severity: normal Keywords:
Cc:

Description

This change will allow users to have erb code in their database.yml such as the following:

development:
  adapter: mysql
  database: <%= SITE %>_dev
  host: localhost
  username: root

The example above is particularly useful for productized apps.

Attachments

parse_erb_in_database_yml.patch (0.6 kB) - added by duane.johnson@gmail.com on 07/24/05 01:55:11.

Change History

07/24/05 01:55:11 changed by duane.johnson@gmail.com

  • attachment parse_erb_in_database_yml.patch added.

07/24/05 01:57:51 changed by anonymous

  • summary changed from Process erb directives in the database.yml file just like the fixture yaml files to [PATCH] Process erb directives in the database.yml file just like the fixture yaml files.

07/24/05 08:16:32 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

08/11/05 11:36:44 changed by ropeclass

it looks like its a good change you made there... i know for myself this is highly desirable for pulling info out of the database.yml file.