Skip to content

Commit

Permalink
Tweaked ActiveRecord example.
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickTulskie committed Sep 12, 2012
1 parent 67815a8 commit 2109057
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/active_record_example.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@
)

# You don't have to load from the mixin - you can just access Configster directly for free form configurations.
ActiveRecord::Base.establish_connection(Configster.config_for('my_production_database'))
my_database_config = Configster.raw_config_for('my_production_database')
my_database_config.symbolize_keys!

# And throw it into ActiveRecord
ActiveRecord::Base.establish_connection(my_database_config)

0 comments on commit 2109057

Please sign in to comment.