Merge branch '3-2-stable' of github.com:rails/rails into 3-2-stable

* '3-2-stable' of github.com:rails/rails:
  [docs] added missing "}" fixes #4126
This commit is contained in:
Aaron Patterson
2011-12-22 12:21:57 -07:00

View File

@@ -966,7 +966,7 @@ When a +lambda+ is used for a +scope+, it can take arguments:
<ruby>
class Post < ActiveRecord::Base
scope :1_week_before, lambda { |time| where("created_at < ?", time)
scope :1_week_before, lambda { |time| where("created_at < ?", time) }
end
</ruby>