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,767 of 183,021
Downloads: 43,953

Daily

Ranking: 49,384 of 183,007
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
35594,014,485activerecord
40563,448,791rails
105335,176,851pg
116293,539,901rspec-rails
198179,935,526database_cleaner
79650,901,975factory_girl_rails

Owners

#GravatarHandle
1icondimson