RubyGems Navigation menu

calculable_attrs 0.0.14

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.

Gemfile:
= Copy to clipboard Copied!

Installeer:
=

Versies:

  1. 0.0.15 - September 14, 2014 (9,5 KB)
  2. 0.0.14 - September 10, 2014 (9,5 KB)
  3. 0.0.13 - September 05, 2014 (9,5 KB)
  4. 0.0.12 - September 05, 2014 (9,5 KB)
  5. 0.0.11 - September 04, 2014 (9,5 KB)
Toon alle versies (15 totaal)

Runtime afhankelijkheden (1):

activerecord >= 3.2

Development afhankelijkheden (5):

pg >= 0
rails >= 3.2
rspec-rails ~> 3.0

Eigenaren:

Authors:

  • Dmitry Sharkov

SHA 256 checksum:

856fc59a76dcb1e249518fa995010fa601c9363acd163f70f35502f995df7ccd

Total downloads 42.958

Voor deze versie 2.764

Licentie:

MIT

Required Ruby Version: >= 0

Links: