Adam Keys
Rubyist/Raconteur · Not a member
Adam Keys's latest activity
Wednesday, June 11 2008
-
Adam Keys commented at 11:31 PMTrevor: indeed, I considered using a Hash. However, using a proper object makes it easier to yell at those who would explicitly set a username/password for the...
-
Adam Keys commented at 4:31 PM@James yeah its completely possible to define the whole thing in
environment.rblike so:config.active_record.connection.configure do |db| db.adapter ...
Sunday, June 08 2008
-
Adam Keys commented at 5:54 PMUpdated patch to allow DRYer AR configuration. In
environment.rb:config.active_record.configure do |db| db.encoding = utf8 db.adapter = 'mys...
Friday, June 06 2008
-
Adam Keys commented at 2:52 PMI went ahead and did the generators. Here's what it looks like for a fresh app generated for MySQL:
# Specify your database connections. You can partially c... -
Adam Keys commented at 1:01 PMJeremy: well in this case, having real methods makes it cleaner, IMHO, to do things like yell at the developer if they set a username/password in production mo...
-
Adam Keys commented at 7:05 AMJust attached a reworked version. This time 'round, the database config hangs off of ActiveRecord itself. You can set it in your generic environment or a speci...
Tuesday, June 03 2008
-
-
Adam Keys created the ticket at 6:22 AMThis patch allows a developer to configure their database via Ruby in addition to the existing database.yml. First, one specifies the path to the Ruby file:
c...