Skip to content

Commit

Permalink
Fixed bug in rescue on getting id from prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
William Poynter authored and William Poynter committed Nov 17, 2016
1 parent 059d46a commit 17b141c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/prefix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def [](prefix)
rescue Exception => e
Rails.logger.warn 'Unable to get prefix from Redis cache. Returning input.'
Rails.logger.warn e.message
return id
return prefix
end
end

Expand Down

0 comments on commit 17b141c

Please sign in to comment.