Skip to content

Commit

Permalink
Capitalize original_type
Browse files Browse the repository at this point in the history
Because `pgroonga_command('select'...)` returns normalized value using NormalizerAuto.
  • Loading branch information
okkez committed Mar 12, 2018
1 parent 6ff12d6 commit ea09acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/full_text_search/searcher_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def score
alias rank score

def original_record
@original_record ||= original_type.constantize.find(original_id)
@original_record ||= original_type.capitalize.constantize.find(original_id)
end

def project
Expand Down

0 comments on commit ea09acb

Please sign in to comment.