Class: Paperclip::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/paperclip/railtie.rb,
lib/paperclip/railtie.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) insert



22
23
24
25
26
27
28
29
# File 'lib/paperclip/railtie.rb', line 22

def self.insert
  Paperclip.options[:logger] = Rails.logger

  if defined?(ActiveRecord)
    Paperclip.options[:logger] = ActiveRecord::Base.logger
    ActiveRecord::Base.send(:include, Paperclip::Glue)
  end
end