Created
February 7, 2010 20:17
-
-
Save snusnu/297654 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## in a railtie initializer | |
initializer 'data_mapper.configuration' do |app| | |
app.config.data_mapper = Rails::DataMapper::Configuration.for( | |
app.config.database_configuration | |
) | |
puts app.config.data_mapper.inspect | |
puts app.config.data_mapper.class | |
end | |
## running | |
ree-1.8.7-2010.01 mungo:datamapper_on_rails3 snusnu$ bundle exec vendor/bin/rails console | |
#<OrderedHash {}> | |
ActiveSupport::OrderedOptions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment