rubocop fix up

This commit is contained in:
Brenda Wallace
2017-11-01 14:33:59 +13:00
parent 31a37bf6dc
commit 267f27b3f8
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)