Class: DelayedPaperclip::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- DelayedPaperclip::Railtie
- Defined in:
- lib/delayed_paperclip/railtie.rb,
lib/delayed_paperclip/railtie.rb
Overview
On initialzation, include DelayedPaperclip
Class Method Summary collapse
-
.insert ⇒ Object
Glue includes DelayedPaperclip Class Methods and Instance Methods into ActiveRecord Attachment and URL Generator extends Paperclip.
Class Method Details
.insert ⇒ Object
Glue includes DelayedPaperclip Class Methods and Instance Methods into ActiveRecord Attachment and URL Generator extends Paperclip
21 22 23 24 25 |
# File 'lib/delayed_paperclip/railtie.rb', line 21 def self.insert ActiveRecord::Base.send(:include, DelayedPaperclip::Glue) Paperclip::Attachment.prepend(DelayedPaperclip::Attachment) Paperclip::Attachment.[:url_generator] = DelayedPaperclip::UrlGenerator end |