Skip to content

Commit

Permalink
Merge pull request #10 from W1ldr/dev
Browse files Browse the repository at this point in the history
fix: change w to word
  • Loading branch information
W1ldr authored Apr 18, 2024
2 parents bd23f85 + daf30de commit 87b105a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/words_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ def word_info

# Only allow a list of trusted parameters through.
def word_params
params.require(:word).permit(:w, :syllabic_division)
params.require(:word).permit(:word, :syllabic_division)
end
end
2 changes: 1 addition & 1 deletion app/models/word.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Word < ApplicationRecord
has_many :meanings

def self.search_word(word)
word = Word.find_by(w: word)
word = Word.find_by(word: word)
return word.info if word.present?
end

Expand Down

0 comments on commit 87b105a

Please sign in to comment.