Sha256: 4a0384aee8eaedf3de3800eb4cc0caee2cec400b663eb1b93f42f7cf604769ab

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

module Ksk
  module Static
    extend ActiveSupport::Concern

    included do
      self.table_name = 'statics'

      include Apdown

      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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ksk-0.2.12 lib/actives/static.rb
ksk-0.2.11 lib/actives/static.rb
ksk-0.2.10 lib/actives/static.rb
ksk-0.2.9 lib/actives/static.rb