Module: Paperclip::Glue

Defined in:
lib/paperclip.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



180
181
182
183
184
185
186
187
188
# File 'lib/paperclip.rb', line 180

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