Class: Comfy::Cms::Fragment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filesObject

Returns the value of attribute files.



11
12
13
# File 'app/models/comfy/cms/fragment.rb', line 11

def files
  @files
end

Instance Method Details

#file_ids_destroy=(ids) ⇒ Object



39
40
41
42
# File 'app/models/comfy/cms/fragment.rb', line 39

def file_ids_destroy=(ids)
  @file_ids_destroy = [ids].flatten.compact
  content_will_change! if @file_ids_destroy.present?
end