Sha256: d9de464a7ad2a9543800554402778fba4a29536d64d4dcdef55748f0695c9bf7

Contents?: true

Size: 406 Bytes

Versions: 14

Compression:

Stored size: 406 Bytes

Contents

module Pageflow
  class Storyline < ApplicationRecord
    include SerializedConfiguration
    include RevisionComponent

    has_many(:chapters,
             -> { order('pageflow_chapters.position ASC') },
             dependent: :destroy,
             inverse_of: :storyline)

    has_many :pages, through: :chapters

    nested_revision_components :chapters

    delegate :entry, to: :revision
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
pageflow-17.0.4 app/models/pageflow/storyline.rb
pageflow-17.0.3 app/models/pageflow/storyline.rb
pageflow-17.0.2 app/models/pageflow/storyline.rb
pageflow-17.0.1 app/models/pageflow/storyline.rb
pageflow-17.0.0 app/models/pageflow/storyline.rb
pageflow-16.2.0 app/models/pageflow/storyline.rb
pageflow-16.1.0 app/models/pageflow/storyline.rb
pageflow-16.0.0 app/models/pageflow/storyline.rb
pageflow-15.8.0 app/models/pageflow/storyline.rb
pageflow-15.7.1 app/models/pageflow/storyline.rb
pageflow-15.7.0 app/models/pageflow/storyline.rb
pageflow-15.6.1 app/models/pageflow/storyline.rb
pageflow-15.6.0 app/models/pageflow/storyline.rb
pageflow-15.5.0 app/models/pageflow/storyline.rb