YourActiveRecordModel.configurations[ Rails.env ][ 'username' ] YourActiveRecordModel.configurations[ Rails.env ][ 'database' ]
- Maurício Linhares http://codeshooter.wordpress.com/ | http://twitter.com/mauriciojr On Tue, Jun 9, 2009 at 11:14 AM, Steve Dc<[email protected]> wrote: > > Are there methods for the model object to get the current_user, and > current_database? I was hoping that this would be available as methods > from the connection object. > > For example > model.connection.db_user > model.connection.db_name > > Is there a group for ActiveRecord, where I can post this? > -- > Posted via http://www.ruby-forum.com/. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

