Module: Pageflow::UploadedFile

Extended by:
ActiveSupport::Concern
Included in:
HostedFile, ImageFile
Defined in:
app/models/concerns/pageflow/uploaded_file.rb

Instance Method Summary collapse

Instance Method Details

#usage_idObject

this prevents shadowing of usage_id that may be provided by SELECT alias


18
19
20
# File 'app/models/concerns/pageflow/uploaded_file.rb', line 18

def usage_id
  @usage_id || read_attribute(:usage_id)
end