module Attachs::Extensions::ActiveRecord::Base::ClassMethods

Public Instance Methods

has_attachment(*args) click to toggle source
# File lib/attachs/extensions/active_record/base.rb, line 9
def has_attachment(*args)
  builder = Builder.new(self)
  builder.define *args
end
has_attachments(*args) click to toggle source
# File lib/attachs/extensions/active_record/base.rb, line 14
def has_attachments(*args)
  options = args.extract_options!
  options[:multiple] = true
  has_attachment *args.append(options)
end