Skip to content

Commit

Permalink
[ifmeorg#1713] match resource tag with moment strategy name and descr…
Browse files Browse the repository at this point in the history
…iption
  • Loading branch information
S-Warmenhoven committed Apr 8, 2020
1 parent f8592bf commit 7458bbf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/services/resource_recommendation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ def resources
category_description = category['description']
moment_keywords.push(category_description.split)
end
@moment.strategies.each do |strategy|
moment_keywords.push(strategy['name'].split)
end
@moment.strategies.each do |strategy|
strategy_description = strategy['description']
moment_keywords.push(strategy_description.split)
end
moment_keywords.push(moment_name, moment_why, moment_fix)
moment_keywords = moment_keywords.flatten
moment_keywords = moment_keywords.map(&:downcase)
Expand Down

0 comments on commit 7458bbf

Please sign in to comment.