diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-13 23:29:30 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-03-13 23:29:30 +0530 |
commit | 800c70a8f9e6264e72019b1d8e18bddfa48f1373 (patch) | |
tree | f8d91928d5313a93248c0485a7c04e53f92bf856 /railties/guides/source/association_basics.textile | |
parent | cb7d19b66badfbd1846c195913419c331701074e (diff) | |
parent | a9f688648cf91b3424710c185b0f17982734d4b6 (diff) | |
download | rails-800c70a8f9e6264e72019b1d8e18bddfa48f1373.tar.gz rails-800c70a8f9e6264e72019b1d8e18bddfa48f1373.tar.bz2 rails-800c70a8f9e6264e72019b1d8e18bddfa48f1373.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/association_basics.textile')
-rw-r--r-- | railties/guides/source/association_basics.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/association_basics.textile b/railties/guides/source/association_basics.textile index ba92aedbd0..493b7c30be 100644 --- a/railties/guides/source/association_basics.textile +++ b/railties/guides/source/association_basics.textile @@ -1322,7 +1322,7 @@ 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> |