mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
[docs] added missing "}" fixes #4126
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user