rubocop fix up

This commit is contained in:
Brenda Wallace committed 2017-11-01 14:48:42 +13:00
1 parent 31a37bf6dc
commit 267f27b3f8
2 files changed
+2 -2

No files matched your search

+1 -1
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
+1 -1
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)