Class: Scaffolding::CompletelyConcrete::TangibleThing

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/scaffolding/completely_concrete/tangible_thing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#file_field_value_removalObject

Returns the value of attribute file_field_value_removal.



33
34
35
# File 'app/models/scaffolding/completely_concrete/tangible_thing.rb', line 33

def file_field_value_removal
  @file_field_value_removal
end

Instance Method Details

#collectionObject



35
36
37
# File 'app/models/scaffolding/completely_concrete/tangible_thing.rb', line 35

def collection
  absolutely_abstract_creative_concept.completely_concrete_tangible_things
end

#file_field_value_removal?Boolean

Returns:

  • (Boolean)


39
40
41
# File 'app/models/scaffolding/completely_concrete/tangible_thing.rb', line 39

def file_field_value_removal?
  file_field_value_removal.present?
end

#remove_file_field_valueObject



43
44
45
# File 'app/models/scaffolding/completely_concrete/tangible_thing.rb', line 43

def remove_file_field_value
  file_field_value.purge
end