guides/source/association_basics.textile in railties-3.2.2 vs guides/source/association_basics.textile in railties-3.2.3.rc1
- old
+ new
@@ -1317,10 +1317,10 @@
If you need to evaluate conditions dynamically at runtime, use a proc:
<ruby>
class Customer < ActiveRecord::Base
has_many :latest_orders, :class_name => "Order",
- :conditions => proc { ["orders.created_at > ?, 10.hours.ago] }
+ :conditions => proc { ["orders.created_at > ?", 10.hours.ago] }
end
</ruby>
h6(#has_many-counter_sql). +:counter_sql+