18 19 20 21 22 23 24 25
# File 'lib/paperclip/railtie.rb', line 18 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