Commit Graph
6 Commits
Author SHA1 Message Date
Brenda Wallace 6478d9cb1b Haml clean up for crops views 2017-02-06 10:31:45 +13:00
Mackenzie Morgan e1a2b168c9 rename scientific_names.scientific_name to scientific_names.name
this mirrors alternate_names.name and allows making code more DRY
2016-11-28 21:57:51 -05:00
Cjay Billones bb88041fef [Refactoring] Replace .count and .length with .size for collections
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.

Fix error in refactoring

Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Skud 99bfc704dc Added plantings_count (i.e. counter_cache) to Member
Also removed the superfluous .plantings_count method on Crop, which was
causing some confusion.

A thing we learned today: we should use .size to find the size of
ActiveRecord collections, not .count, because .count doesn't use the
cache (while .size does).
2013-08-26 13:54:09 +10:00
Skud 4d0f63bf74 Added a popover for planting images too. 2013-08-07 13:21:26 +10:00
Skud b27d3d8385 roughly got crops/plantings working for new homepage 2013-08-07 13:21:26 +10:00