Sha256: 062292387aeddf8c4dff76986130390993797c55da0176c069323f013114c1e0

Contents?: true

Size: 235 Bytes

Versions: 37

Compression:

Stored size: 235 Bytes

Contents

module Pageflow
  class FileUsage < ApplicationRecord
    include SerializedConfiguration

    belongs_to :revision
    belongs_to :file, polymorphic: true

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

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
pageflow-14.5.2 app/models/pageflow/file_usage.rb
pageflow-14.5.1 app/models/pageflow/file_usage.rb
pageflow-14.5.0 app/models/pageflow/file_usage.rb
pageflow-14.4.0 app/models/pageflow/file_usage.rb
pageflow-14.3.0 app/models/pageflow/file_usage.rb
pageflow-14.2.1 app/models/pageflow/file_usage.rb
pageflow-14.2.0 app/models/pageflow/file_usage.rb
pageflow-14.1.1 app/models/pageflow/file_usage.rb
pageflow-14.1.0 app/models/pageflow/file_usage.rb
pageflow-14.0.0 app/models/pageflow/file_usage.rb
pageflow-14.0.0.rc2 app/models/pageflow/file_usage.rb
pageflow-14.0.0.rc1 app/models/pageflow/file_usage.rb
pageflow-14.0.0.beta3 app/models/pageflow/file_usage.rb
pageflow-14.0.0.beta2 app/models/pageflow/file_usage.rb
pageflow-14.0.0.beta1 app/models/pageflow/file_usage.rb
pageflow-13.6.0 app/models/pageflow/file_usage.rb
pageflow-13.5.0 app/models/pageflow/file_usage.rb
pageflow-13.4.0 app/models/pageflow/file_usage.rb
pageflow-13.3.0 app/models/pageflow/file_usage.rb
pageflow-13.2.0 app/models/pageflow/file_usage.rb