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,915 of 193,756
Downloads: 47,290
Daily
Ranking: 42,965 of 193,649
Downloads: 3
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 | 801,545,420 | activerecord |
| 44 | 755,328,125 | rails |
| 108 | 449,486,157 | pg |
| 122 | 391,185,975 | rspec-rails |
| 239 | 212,078,050 | database_cleaner |
| 935 | 53,720,716 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |