Module: Paperclip::Glue
- Defined in:
- lib/paperclip.rb
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
221 222 223 224 225 226 227 228 229 |
# File 'lib/paperclip.rb', line 221 def self.included base #:nodoc: base.extend ClassMethods base.class_attribute :attachment_definitions if base.respond_to?(:class_attribute) if base.respond_to?(:set_callback) base.send :include, Paperclip::CallbackCompatability::Rails3 else base.send :include, Paperclip::CallbackCompatability::Rails21 end end |