Sha256: e7d1c0f17e651116af70f752fd4d314b69ce4dc87679bafa52257eaaea31b856
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 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 has_one_attached :file accepts_nested_attributes_for :file_attachment end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.4.1 | app/models/concerns/headmin/field.rb |
headmin-0.4.0 | app/models/concerns/headmin/field.rb |