Skip to content

Commit

Permalink
Update README.textile
Browse files Browse the repository at this point in the history
RAILS_ROOT is deprecated and doesn't work any more. I googled around, found Rails.root, and my installation worked great.
  • Loading branch information
nelsonblaha committed Nov 7, 2012
1 parent 7dc97d3 commit cd97251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.textile
Expand Up @@ -62,7 +62,7 @@ _encrypt_with_public_key_ sets up the attribute it's called on for automatic enc

bc. class User < ActiveRecord::Base
encrypt_with_public_key :secret,
:key_pair => File.join(RAILS_ROOT,'config','keypair.pem')
:key_pair => File.join(Rails.root,'config','keypair.pem')
end

Which will encrypt the attribute "secret". The attribute will be encrypted using symmetric encryption with an automatically generated key and IV encrypted using the public key. This requires three columns in the database "secret", "secret_key", and "secret_iv" (see below).
Expand Down

0 comments on commit cd97251

Please sign in to comment.