From ef74cc293d42569d5c67e9e9e6c98efcf079b30c Mon Sep 17 00:00:00 2001 From: jenkr55 Date: Sat, 21 Apr 2018 10:51:19 -0500 Subject: [PATCH] Rubocop --- app/helpers/application_helper.rb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9259f38d2..7ef7bc02f 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -86,17 +86,15 @@ module ApplicationHelper def show_inactive_tickbox_path(type, owner, show_all) all = show_all ? '' : 1 if owner - if type == 'plantings' then + if type == 'plantings' plantings_by_owner_path(owner: owner.slug, all: all) - elsif type == 'gardens' then + elsif type == 'gardens' gardens_by_owner_path(owner: owner.slug, all: all) end - else - if type == 'plantings' then - plantings_path(all: all) - elsif type == 'gardens' then - gardens_path(all: all) - end + elsif type == 'plantings' + plantings_path(all: all) + elsif type == 'gardens' + gardens_path(all: all) end end