From ad42eb93706f469cb40424bff41f4e04516d27f8 Mon Sep 17 00:00:00 2001 From: stephanie-warmenhoven Date: Wed, 8 Apr 2020 22:11:30 -0700 Subject: [PATCH] [#1713] shortened lines of code as per rubocop --- app/services/resource_recommendation.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/services/resource_recommendation.rb b/app/services/resource_recommendation.rb index 37189cbc0b..711498fc38 100644 --- a/app/services/resource_recommendation.rb +++ b/app/services/resource_recommendation.rb @@ -28,13 +28,16 @@ def resources matched_resources = [] moment_keywords = [] @moment.categories.each do |category| - moment_keywords.push(category['name'].split, html_clean(category['description']).split) + moment_keywords.push(category['name'].split, + html_clean(category['description']).split) end @moment.moods.each do |mood| - moment_keywords.push(mood['name'].split, html_clean(mood['description']).split) + moment_keywords.push(mood['name'].split, + html_clean(mood['description']).split) end @moment.strategies.each do |strategy| - moment_keywords.push(strategy['name'].split, html_clean(strategy['description']).split) + moment_keywords.push(strategy['name'].split, + html_clean(strategy['description']).split) end moment_keywords.push(moment_name, moment_why, moment_fix) moment_keywords = moment_keywords.flatten