Sha256: 958595848aa22d34d4f45c462b19abc54c9b6f0f702f585cd804d6cae28a517b
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
module Headmin module Field extend ActiveSupport::Concern included do # Configuration has_closure_tree # Associations belongs_to :fieldable, polymorphic: true, optional: true, touch: true belongs_to :field, optional: true, touch: true has_many :fields, foreign_key: "parent_id" accepts_nested_attributes_for :fields, allow_destroy: true # field_type: :files, :file has_many_attached :files accepts_nested_attributes_for :files_attachments, allow_destroy: true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.1 | app/models/concerns/headmin/field.rb |
headmin-0.5.0 | app/models/concerns/headmin/field.rb |
headmin-0.4.2 | app/models/concerns/headmin/field.rb |