[docs] added missing "}" fixes #4126

This commit is contained in:
Arun Agrawal
2011-12-22 12:36:15 +05:30
parent 1945bafba2
commit 8dc892618e

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>