Module: ActiveRecord::CustomAttributes::Core::InstanceMethods

Defined in:
lib/active_record/custom_attributes.rb

Instance Method Summary collapse

Instance Method Details

#custom_attributesObject



126
127
128
# File 'lib/active_record/custom_attributes.rb', line 126

def custom_attributes
  @custom_attributes ||= ActiveRecord::CustomAttributes::CustomAttributeList.new(self)
end

#custom_attributes=(post_data) ⇒ Object



130
131
132
# File 'lib/active_record/custom_attributes.rb', line 130

def custom_attributes= post_data
  custom_attributes.set_post_data post_data
end