Class: Documents::FileValue

Inherits:
FieldValue
  • Object
show all
Defined in:
app/models/documents/file_value.rb

Direct Known Subclasses

ImageValue

Instance Method Summary collapse

Methods inherited from FieldValue

#path

Instance Method Details

#has_value?Boolean

Returns:

  • (Boolean)


6
# File 'app/models/documents/file_value.rb', line 6

def has_value? = files.attached?

#to_sObject



8
# File 'app/models/documents/file_value.rb', line 8

def to_s = files.map(&:filename).map(&:to_s).join(", ")

#valueObject



3
# File 'app/models/documents/file_value.rb', line 3

def value = files