Sha256: 1173cee688d6bc2f137681f1a42148b3365ad27db95d52575b183d88be68f82f

Contents?: true

Size: 326 Bytes

Versions: 15

Compression:

Stored size: 326 Bytes

Contents

module Ksk::Static
  extend ActiveSupport::Concern

  included do
    include Ksk::Markdown

    has_one :navigation
    has_many :assets, as: :fileable
    # TODO: needs on_delete hook to destroy navigation if Navigation is availible for this object

    accepts_nested_attributes_for :assets, allow_destroy: true
  end

end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ksk-0.4.7 app/models/concerns/ksk/static.rb
ksk-0.4.6 app/models/concerns/ksk/static.rb
ksk-0.4.5 app/models/concerns/ksk/static.rb
ksk-0.4.4 app/models/concerns/ksk/static.rb
ksk-0.4.3 app/models/concerns/ksk/static.rb
ksk-0.4.2 app/models/concerns/ksk/static.rb
ksk-0.4.1 app/models/concerns/ksk/static.rb
ksk-0.4.0 app/models/concerns/ksk/static.rb
ksk-0.3.4 app/models/concerns/ksk/static.rb
ksk-0.3.3 app/models/concerns/ksk/static.rb
ksk-0.3.2 app/models/concerns/ksk/static.rb
ksk-0.3.0 app/models/concerns/ksk/static.rb
ksk-0.2.15 app/models/concerns/ksk/static.rb
ksk-0.2.14 app/models/concerns/ksk/static.rb
ksk-0.2.13 app/models/concerns/ksk/static.rb