0

so, when I use this gem with the config.gem method it rails 2's environment.rb file, everything is fine. I can save and read encrypted attributes.

but when I use bundler (the preferred method =D), attr_encrypted suddenly isn't able to read or write any of the encrypted attributes to the database. There are no errors anywhere in the console / log / webpage.

any ideas?

NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352

1 Answers1

0

The solution is to do:

gem "attr_encrypted", :require => nil

in the gemfile

and then do

require "attr_encrypted" 

somewhere in environment.rb after Bundler has required the other gems.

NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352