mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-11 01:05:01 -04:00
Merge branch 'dev' into upgrade/rails-5
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Growstuff
|
||||
|
||||
[](https://travis-ci.org/Growstuff/growstuff)
|
||||
[](https://coveralls.io/r/Growstuff/growstuff)
|
||||
[](https://coveralls.io/github/Growstuff/growstuff?branch=dev)
|
||||
[](https://codeclimate.com/github/Growstuff/growstuff)
|
||||
|
||||
Welcome to the Growstuff project.
|
||||
|
||||
@@ -26,8 +26,8 @@ class Notifier < ApplicationMailer
|
||||
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 }
|
||||
|
||||
Reference in New Issue
Block a user