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,221 of 195,789
Downloads: 47,533
Daily
Ranking: 56,338 of 195,762
Downloads: 4
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 | 821,824,221 | activerecord |
| 45 | 774,021,618 | rails |
| 110 | 461,981,906 | pg |
| 122 | 400,964,076 | rspec-rails |
| 246 | 215,686,127 | database_cleaner |
| 954 | 53,931,696 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |