Sha256: aabbff807972d913ea00ff7dc31bcd76ca2aa1bbf1ac35ec40e4d2f2919599f6

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

module Para
  module Page
    module Model
      extend ActiveSupport::Concern

      included do
        has_many :sections, -> { ordered }, class_name: '::Para::Page::Section', as: :page
        accepts_nested_attributes_for :sections, allow_destroy: true
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
para-0.6.9 lib/para/page/model.rb
para-0.6.8 lib/para/page/model.rb
para-0.6.7 lib/para/page/model.rb
para-0.6.3 lib/para/page/model.rb
para-0.6.2 lib/para/page/model.rb
para-0.5.4 lib/para/page/model.rb
para-0.5.3 lib/para/page/model.rb