Sha256: 34e1b71c6bcf060ae76a23b0adb5cbd1fecd73b07a24635b2f07d1c6a6b6e17a
Contents?: true
Size: 448 Bytes
Versions: 11
Compression:
Stored size: 448 Bytes
Contents
module PageflowScrolled class ContentElement < Pageflow::ApplicationRecord include Pageflow::SerializedConfiguration include Pageflow::AutoGeneratedPermaId belongs_to :section def self.all_for_revision(revision) joins(section: {chapter: {storyline: :revision}}) .where(pageflow_scrolled_storylines: {revision_id: revision}) end def copy_to(section) section.content_elements << dup end end end
Version data entries
11 entries across 11 versions & 1 rubygems