Module: Mongoid::Paperclip

Defined in:
lib/mongoid/paperclip.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


31
32
33
34
35
36
37
38
39
40
# File 'lib/mongoid/paperclip.rb', line 31

def self.included(base)
  base.instance_eval do
    include ::Paperclip
    include ::Paperclip::Glue

    alias :__mongoid_has_attached_file :has_attached_file

    extend ClassMethods
  end
end