19 20 21 22 23 24
# File 'lib/paperclip/railtie.rb', line 19 def self.insert ActiveRecord::Base.send(:include, Paperclip::Glue) File.send(:include, Paperclip::Upfile) Paperclip.options[:logger] = defined?(ActiveRecord) ? ActiveRecord::Base.logger : Rails.logger end