Class: Document

Inherits:
ApplicationRecord show all
Extended by:
DbFile::Uploader
Defined in:
app/models/document.rb

Defined Under Namespace

Modules: Associations

Instance Method Summary collapse

Methods included from DbFile::Uploader

extended, has_uploaded

Methods inherited from ApplicationRecord

alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#current_dataObject

Method provided for backwards compatibility



43
44
45
# File 'app/models/document.rb', line 43

def current_data
  uploaded_data.read
end