Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Commit

Permalink
Documentation typo: find_by_obfuscated instead of find_obfuscated
Browse files Browse the repository at this point in the history
  • Loading branch information
minostro committed May 11, 2013
1 parent c398155 commit a94e396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ To get the 11 character `obfuscated_id`, which uses `mode :block` for the Blowfi
message = Message.find(1)
obfuscated = message.obfuscated_id # "NuwhZTtHnko"
clarified = message.clarify_id( obfuscated ) # "1"
Message.find_by_obfuscated( obfuscated ) # raises an ActiveRecord::RecordNotFound if the found record does not exist

Message.find_obfuscated( obfuscated ) # raises an ActiveRecord::RecordNotFound if the found record does not exist
Message.find_by_obfuscated_id( obfuscated ) # returns nil if the found record does not exist

Or `obfuscate` a block of text, defaults to mode :string which uses Blowfish string encryption, allowing longer
Expand Down

0 comments on commit a94e396

Please sign in to comment.