module CustomAttributes::ActsAsCustomValue::ClassMethods

Public Instance Methods

acts_as_custom_value(_options = {}) click to toggle source
# File lib/custom_attributes/acts_as/acts_as_custom_value.rb, line 9
def acts_as_custom_value(_options = {})
  include CustomAttributes::ActsAsCustomValue::InstanceMethods

  belongs_to :custom_field
  belongs_to :customizable, polymorphic: true

  after_save :custom_field_after_save_custom_value
end