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: 29,012 of 187,988
Downloads: 46,055
Daily
Ranking: 114,981 of 187,967
Downloads: 0
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 |
|---|---|---|
| 36 | 726,531,445 | activerecord |
| 44 | 685,225,622 | rails |
| 107 | 407,234,241 | pg |
| 116 | 357,228,357 | rspec-rails |
| 224 | 199,328,826 | database_cleaner |
| 901 | 52,601,141 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |