examples/rails/config/environment.rb in rmce_uploadr-0.0.2 vs examples/rails/config/environment.rb in rmce_uploadr-0.0.3

- old
+ new

@@ -38,10 +38,11 @@ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')] # config.i18n.default_locale = :de - config.middleware.use "RMceUploadr::App" do |conf| - conf.dbconf = {:adapter => 'sqlite3', + config.middleware.use "RMceUploadr::App" do |app| + app.dbconf = {:adapter => 'sqlite3', :database => File.join(File.dirname(__FILE__), '..', '..', 'shared', 'db.sqlite3')} + app.settings.set :cdn_host, "http://localhost:3000" end end \ No newline at end of file