config.active_record.configure do |db| db.database = 'test_app_production' db.socket = IO.popen("mysql --help") {|f| f.read() =~ /^socket(.+) $/ && $1.strip } db.credentials = "#{ENV["home"]}/.my.cnf" end
Good idea or not, I'm just throwing it out there. Not that you couldn't have done this in yml but... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---