Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/services/translator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ class Translator < ApplicationService
hygiene: %w[clean cleaning shower],
technology: %w[computer tech],
legal: %w[law],
learning: %w[learn education teacing teach teacher],
learning: %w[learn education teaching teach teacher],
phone: %w[],
overdose: %w[prevention]
}
}.freeze

class << self
def services_dictionary
return @services_dictionary unless @services_dictionary.nil?

@services_dictionary = {}
# Goes through all current services
Service.all.each do |service|
Service.find_each do |service|
assign(@services_dictionary, key: service.key, value: service.name)
end

Expand Down
Loading