Fix: @owner -> owner in harvests_title

This commit is contained in:
Brenda Wallace
2017-02-08 07:04:32 +13:00
committed by Shiny
parent ba1c40702b
commit 096146cb84

View File

@@ -33,7 +33,7 @@ module HarvestsHelper
end
def harvests_title(owner, crop)
if @owner
if owner
t('.title.owner_harvests', owner: owner.login_name)
elsif crop
t('.title.crop_harvests', crop: crop.name)