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,794 of 183,127
Downloads: 43,983

Daily

Ranking: 74,510 of 183,106
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
35596,341,077activerecord
41565,534,895rails
103336,660,441pg
116294,850,679rspec-rails
200180,385,697database_cleaner
80050,934,813factory_girl_rails

Owners

#GravatarHandle
1icondimson