lib/has_eav.rb
# save the list of eav_attribute back to the database
save the list of eav_attribute back to the database
save the list of eav_attribute back to the database
def save_eav_attributes 
          eav_attributes.select { |a| a.changed? }.each do |a|
            if a.new_record?
              a.send( :write_attribute, self_key, self.id )
            end
            a.save!
          end
        end
def save_eav_attributes eav_attributes . select { | a | a . changed? } . each do | a | if a . new_record? a . send ( :write_attribute , self_key , self . id ) end a . save! end end
save the list of eav_attribute back to the database
save the list of eav_attribute back to the database
# :nodoc: