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,206 of 188,779
Downloads: 46,254
Daily
Ranking: 88,817 of 188,757
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 | 741,136,506 | activerecord |
| 44 | 698,528,710 | rails |
| 107 | 415,017,481 | pg |
| 116 | 362,867,347 | rspec-rails |
| 228 | 201,498,764 | database_cleaner |
| 905 | 52,771,821 | factory_girl_rails |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | dimson |