Sha256: 5680c8c16974395973cbab5a632c5b01888a2240ec0b298205497a3b326c1b8c

Contents?: true

Size: 208 Bytes

Versions: 24

Compression:

Stored size: 208 Bytes

Contents

module Spina
  class Structure < ActiveRecord::Base
    has_one :page_part, as: :page_partable
    has_many :structure_items

    accepts_nested_attributes_for :structure_items, allow_destroy: true
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
spina-0.6.17 app/models/spina/structure.rb
spina-0.6.16 app/models/spina/structure.rb
spina-0.6.15 app/models/spina/structure.rb
spina-0.6.14 app/models/spina/structure.rb