Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
Heroku bugfix: host or uri is accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosinger committed May 15, 2012
1 parent fa16169 commit 14ddcf8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/attachment_magick/dragonfly/init.rb
Expand Up @@ -17,12 +17,12 @@

app.datastore = Dragonfly::DataStorage::MongoDataStore.new
app.datastore.configure do |c|
c.host = yaml_file['host'] # defaults to localhost
c.port = yaml_file['port'] # defaults to mongo default (27017)
c.database = yaml_file['database'] # defaults to 'dragonfly'
c.username = yaml_file['username'] # only needed if mongo is running in auth mode
c.password = yaml_file['password'] # only needed if mongo is running in auth mode
c.host = yaml_file['host'] || yaml_file['uri'] # defaults to localhost
c.port = yaml_file['port'] # defaults to mongo default (27017)
c.database = yaml_file['database'] # defaults to 'dragonfly'
c.username = yaml_file['username'] # only needed if mongo is running in auth mode
c.password = yaml_file['password'] # only needed if mongo is running in auth mode
end

app.define_macro_on_include(Mongoid::Document, :image_accessor)
end
end

0 comments on commit 14ddcf8

Please sign in to comment.