Class: Pageflow::FileUsage

Inherits:
ApplicationRecord show all
Includes:
RevisionComponent, SerializedConfiguration
Defined in:
app/models/pageflow/file_usage.rb

Constant Summary

Constants included from RevisionComponent

RevisionComponent::ADVISORY_LOCK_TIMEOUT_SECONDS

Instance Method Summary collapse

Methods included from SerializedConfiguration

#configuration

Instance Method Details

#copy_to(revision) ⇒ Object



10
11
12
# File 'app/models/pageflow/file_usage.rb', line 10

def copy_to(revision)
  revision.file_usages << dup
end