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

.insertObject



19
20
21
22
23
# File 'lib/paperclip/railtie.rb', line 19

def self.insert
  ActiveRecord::Base.send(:include, Paperclip::Glue)
  File.send(:include, Paperclip::Upfile)
  ActionController::Base.send(:include, Paperclip::Storage::Database::ControllerClassMethods)
end