Module: Dragonfly::Config::Rails
- Defined in:
- lib/dragonfly/config/rails.rb
Class Method Summary collapse
Class Method Details
.apply_configuration(app) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dragonfly/config/rails.rb', line 6 def self.apply_configuration(app) app.configure do |c| c.log = ::Rails.logger if c.datastore.is_a?(DataStorage::FileDataStore) c.datastore.root_path = ::Rails.root.join('public/system/dragonfly', ::Rails.env).to_s c.datastore.server_root = ::Rails.root.join('public').to_s end c.url_format = '/media/:job/:basename.:format' c.analyser.register(Analysis::FileCommandAnalyser) end end |