Module: Shrine::Plugins::ModuleInclude::ClassMethods

Defined in:
lib/shrine/plugins/module_include.rb

Instance Method Summary collapse

Instance Method Details

#attacher_module(mod = nil, &block) ⇒ Object


14
15
16
# File 'lib/shrine/plugins/module_include.rb', line 14

def attacher_module(mod = nil, &block)
  module_include(self::Attacher, mod, &block)
end

#attachment_module(mod = nil, &block) ⇒ Object


10
11
12
# File 'lib/shrine/plugins/module_include.rb', line 10

def attachment_module(mod = nil, &block)
  module_include(self::Attachment, mod, &block)
end

#file_module(mod = nil, &block) ⇒ Object


18
19
20
# File 'lib/shrine/plugins/module_include.rb', line 18

def file_module(mod = nil, &block)
  module_include(self::UploadedFile, mod, &block)
end