Skip to content

Commit 915490a

Browse files
authored
MONGOID-4917 update scope docs to use proc syntax (#4810)
1 parent a6e862e commit 915490a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/tutorials/mongoid-documents.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ fields, associations, validations and scopes are copied to the child document.
11201120

11211121
class Browser < Canvas
11221122
field :version, type: Integer
1123-
scope :recent, where(:version.gt => 3)
1123+
scope :recent, ->{ where(:version.gt => 3) }
11241124
end
11251125

11261126
class Firefox < Browser

0 commit comments

Comments
 (0)