Categories: None [Edit]
calculable_attrs
Imagine you have an Account model which has many transactions.
calculable_attrs gem allows you to define Account#balance as SUM(transactions.amount) directly in your Account model.
And solves n+1 problem for you in an elegant way.
Total
Ranking: 30,498 of 197,085
Downloads: 47,719
Daily
Ranking: 15,953 of 197,066
Downloads: 18
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 37 | 845,746,438 | activerecord |
| 45 | 796,157,597 | rails |
| 110 | 475,509,226 | pg |
| 124 | 411,410,621 | rspec-rails |
| 247 | 219,444,568 | database_cleaner |
| 969 | 54,159,492 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |