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
# File 'lib/dragonfly/config/rails.rb', line 6

def self.apply_configuration(app)
  app.configure do |c|
    c.log = ::Rails.logger
    c.datastore.root_path = "#{::Rails.root}/public/system/dragonfly/#{::Rails.env}" if c.datastore.is_a?(DataStorage::FileDataStore)
    c.url_path_prefix = '/media'
    c.analyser.register(Analysis::FileCommandAnalyser)
  end
end