diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-08-19 23:35:04 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-08-19 23:35:04 +0900 |
commit | 97feb4996b1c88f770101dfce6d4d3a6baf6bb33 (patch) | |
tree | 449d4af67c60625b00977fca5121198f8b57d302 | |
parent | 878800559d2639a8bea8f7e805738183bc2a7f41 (diff) | |
download | rails-97feb4996b1c88f770101dfce6d4d3a6baf6bb33.tar.gz rails-97feb4996b1c88f770101dfce6d4d3a6baf6bb33.tar.bz2 rails-97feb4996b1c88f770101dfce6d4d3a6baf6bb33.zip |
Fix syntax error in the doc [ci skip]
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index b68b4baecf..f5a37214de 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1281,7 +1281,7 @@ This is almost the same as defining a class method, except for that scopes alway ```ruby class Article < ApplicationRecord - scope :by_user, ()-> { where(user: user) if user } + scope :by_user, ->(user) { where(user: user) if user } def self.published_since(date) where('published_at > ?', date) if date end |