tracks/app/models
Don Cruse 9073fa1237 Removing some intermediate values
This removes some intermediate steps that were ultimately not necessary
to the math.  It also consolidates some of the methods for counting events
so that fewer intermediate values are necessary.

To that end, a new scope is added to the ToDo model for events that are
*either* created_at or completed_at after a certain date. This scope
allows the StatsController to pull out the largest possible responsive
set of values, and then filter just the particular slices that it needs
for various steps in the calculation.
2013-07-18 22:32:44 -05:00
..
stats Fix failing tests 2013-03-18 21:54:19 -06:00
todos Remove more duplication from Todos::Calendar. 2013-04-29 16:35:50 -05:00
.gitkeep initial upgrade to rails 3.2.3 2012-04-30 13:56:33 +02:00
context.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
dependency.rb fix caching for #1328 and #1329 2012-09-19 17:13:29 +02:00
message_gateway.rb fix finding the used in the message_gateway 2013-04-29 09:38:34 +02:00
note.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
preference.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
project.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
recurring_todo.rb remove boolean returning ternary expression 2013-07-18 15:22:46 -05:00
tag.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
tagging.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00
todo.rb Removing some intermediate values 2013-07-18 22:32:44 -05:00
user.rb move to strong_parameters of rails4. 2013-05-27 12:44:31 +02:00