Created
August 10, 2010 17:38
-
-
Save jjw/517653 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.1-p378 > require 'bug' | |
to_mongo("plain text")...OK | |
Expect errors here... | |
from_mongo("encrypted text")...OK | |
to_mongo("plain text")...OK | |
to_mongo("encrypted text")...Error? ["/home/jjw/.rvm/gems/ruby-1.9.1-p378/gems/mongo_mapper-0.8.3/lib/mongo_mapper/plugins/keys/key.rb:45:in `set'", "/home/jjw/.rvm/gems/ruby-1.9.1-p378/gems/mongo_mapper-0.8.3/lib/mongo_mapper/plugins/keys.rb:309:in `write_key'", "/home/jjw/.rvm/gems/ruby-1.9.1-p378/gems/mongo_mapper-0.8.3/lib/mongo_mapper/plugins/keys.rb:243:in `[]='", "/home/jjw/.rvm/gems/ruby-1.9.1-p378/gems/mongo_mapper-0.8.3/lib/mongo_mapper/plugins/keys.rb:269:in `block in load_from_database'"] | |
from_mongo("encrypted text")...OK | |
to_mongo("plain text")...OK | |
but none here... | |
from_mongo(nil)...to_mongo("plain text")...OK | |
from_mongo("encrypted text")...OK | |
to_mongo("plain text")...OK | |
true | |
ruby-1.9.1-p378 > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment