Class: Comfy::Cms::File

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
WithCategories
Defined in:
app/models/comfy/cms/file.rb

Constant Summary collapse

VARIANT_SIZE =
{
  redactor: { resize: "100x75^",   gravity: "center", crop: "100x75+0+0" },
  thumb:    { resize: "200x150^",  gravity: "center", crop: "200x150+0+0" },
  icon:     { resize: "28x28^",    gravity: "center", crop: "28x28+0+0" }
}.freeze

Instance Attribute Summary collapse

Instance Attribute Details

#fileObject

temporary place to store attachment



16
17
18
# File 'app/models/comfy/cms/file.rb', line 16

def file
  @file
end