Displaying 1 result from an estimated 1 matches for "modify_valu".
Did you mean:
  modify_value
  
2006 Mar 13
1
adding custom cache field
...})
        association_type = association_id.to_s + "_type" if association_id
        association_primary_key = association_id.to_s + "_id"
        if options[:total_cache]
          module_eval(
                      "after_create ''#{association_type}.constantize.modify_value(\"#{self.to_s.underscore.pluralize + "_total"}\",#{association_primary_key},#{options[:total_cache]})" +
                      " unless #{association_type}.nil?''"
                      )
          module_eval(
                      "before_update ...