1
0
Fork 0
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:
Rafael Mendonça França 2013-05-19 17:32:39 -07:00
commit f924823126

View file

@ -1202,6 +1202,7 @@ class User < ActiveRecord::Base
scope :active, -> { where state: 'active' }
scope :inactive, -> { where state: 'inactive' }
end
```
```ruby
User.active.inactive