Module: Cropper::Schema::TableDefinition

Defined in:
lib/cropper/schema.rb

Instance Method Summary collapse

Instance Method Details

#cropped_attachment(*attachment_names) ⇒ Object



52
53
54
55
56
57
58
# File 'lib/cropper/schema.rb', line 52

def cropped_attachment(*attachment_names)
  attachment_names.each do |attachment_name|
    UPLOAD_COLUMNS.each_pair do |column_name, column_type|
      column("#{attachment_name}_#{column_name}", column_type)
    end
  end
end