From 267f27b3f87d9ee67666ca3a1cd444c09f52d439 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Wed, 1 Nov 2017 14:33:59 +1300 Subject: [PATCH] rubocop fix up --- app/controllers/crops_controller.rb | 2 +- app/views/crops/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/crops_controller.rb b/app/controllers/crops_controller.rb index 3e3da6987..1deb716c7 100644 --- a/app/controllers/crops_controller.rb +++ b/app/controllers/crops_controller.rb @@ -137,7 +137,7 @@ class CropsController < ApplicationController return unless params[param_name].present? destroy_names(name_type) params[param_name].each do |_i, value| - create_name!(name_type, value) unless value.blank? + create_name!(name_type, value) unless value.empty? end end diff --git a/app/views/crops/show.html.haml b/app/views/crops/show.html.haml index 5e1e04786..4ac071ae9 100644 --- a/app/views/crops/show.html.haml +++ b/app/views/crops/show.html.haml @@ -37,7 +37,7 @@ %h2 #{@crop.name} is = link_to 'https://en.wikipedia.org/wiki/Annual_vs._perennial_plant_evolution' do - -if @crop.perennial + - if @crop.perennial perennial (living more than two years) - else annual (living and reproducing in a single year or less)