Module: Paperclip::Glue

Defined in:
lib/paperclip.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



222
223
224
225
226
227
228
229
230
# File 'lib/paperclip.rb', line 222

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