Categories: None [Edit]

stately_scopes

https://rubygems.org/gems/stately_scopes
https://github.com/thetron/stately_scopes
I've found that when developing Rails apps, I tend to almost always pair each scope with an instance method which returns a boolean indicating whether the object is included inside that scope.\n\nThis gem simply automatically creates that method for you. Nothing super fancy, and you might consider replacing the state methods with your own, more efficient, implementations - but it's great for early stages of development, or providing a comparative case for unit tests.

Total

Ranking: 82,023 of 198,774
Downloads: 12,174

Daily

Ranking: 40,441 of 198,739
Downloads: 3

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,972,983,480bundler
81,469,998,038rake
141,349,101,799minitest
37870,809,494activerecord
286202,679,695sqlite3

Owners

#GravatarHandle
1iconthetron