Categories: None [Edit]

calculable_attrs

https://rubygems.org/gems/calculable_attrs
https://github.com/dmitrysharkov/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: 27,869 of 183,501
Downloads: 44,179

Daily

Ranking: 16,651 of 183,494
Downloads: 15

Depended by

RankDownloadsName

Depends on

RankDownloadsName
35605,505,056activerecord
41573,778,216rails
103342,218,573pg
116299,612,809rspec-rails
201181,970,907database_cleaner
80851,057,356factory_girl_rails

Owners

#GravatarHandle
1icondimson