mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #10688 from elgalu/master
Missing ending ``` at 14.2 Merging of scopes
This commit is contained in:
commit
f924823126
1 changed files with 1 additions and 0 deletions
|
@ -1202,6 +1202,7 @@ class User < ActiveRecord::Base
|
|||
scope :active, -> { where state: 'active' }
|
||||
scope :inactive, -> { where state: 'inactive' }
|
||||
end
|
||||
```
|
||||
|
||||
```ruby
|
||||
User.active.inactive
|
||||
|
|
Loading…
Reference in a new issue