From 5dc8bc5ec5c8ba1297332a52f46f26f6070b93f4 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Mon, 4 Jun 2018 17:35:06 +1200 Subject: [PATCH 1/2] Order plantings and harvests in email --- app/mailers/notifier.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mailers/notifier.rb b/app/mailers/notifier.rb index 6c479f51f..85e025e3f 100644 --- a/app/mailers/notifier.rb +++ b/app/mailers/notifier.rb @@ -26,8 +26,8 @@ class Notifier < ActionMailer::Base def planting_reminder(member) @member = member - @plantings = @member.plantings.first(5) - @harvests = @member.harvests.first(5) + @plantings = @member.plantings.order(planted_at: :desc).first(5) + @harvests = @member.harvests.order(harvested_at: :desc).first(5) # Encrypting message = { member_id: @member.id, type: :send_planting_reminder } From 2f65939d5cacaa217171abf632e800aba2f35190 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sun, 10 Jun 2018 11:47:15 +1200 Subject: [PATCH 2/2] Pin coverage badge to dev branch --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5827e4ec..a0433b22b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Growstuff [![Build Status](https://travis-ci.org/Growstuff/growstuff.svg?branch=dev)](https://travis-ci.org/Growstuff/growstuff) -[![Coverage Status](https://coveralls.io/repos/Growstuff/growstuff/badge.png)](https://coveralls.io/r/Growstuff/growstuff) +[![Coverage Status](https://coveralls.io/repos/github/Growstuff/growstuff/badge.svg?branch=dev)](https://coveralls.io/github/Growstuff/growstuff?branch=dev) [![Code Climate](https://codeclimate.com/github/Growstuff/growstuff/badges/gpa.svg)](https://codeclimate.com/github/Growstuff/growstuff) Welcome to the Growstuff project.