search for: total_nam

Displaying 1 result from an estimated 1 matches for "total_nam".

Did you mean: total_na
2006 Mar 13
1
adding custom cache field
...total? @owner.attribute_present?(cached_total_attribute_name) end def cached_total_attribute_name "#{@reflection.name}_total" end end end end module ActiveRecord #:nodoc: class Base class << self # Class methods def modify_value(total_name, id, value) update_all "#{total_name} = #{total_name} + #{value}", "#{primary_key} = #{quote(id)}" end end end end -- Surendra Singhi http://ssinghi.kreeti.com, http://www.kreeti.com Read my blog at: http://cuttingtheredtape.blogspot.com/ ,---- | "All...