module FieldValueable
  extend ActiveSupport::Concern

  included do
    has_many :field_value_field_valueables, as: :field_valueable
    has_many :field_values, through: :field_value_field_valueables, dependent: :destroy
    accepts_nested_attributes_for :field_value_field_valueables, :field_values
  end
end
