jmazzi/crypt_keeper — pull request #18 by fabiokr (2012-12-07 14:26:03+00:00)
Title: Checks if field exist

Checks if the defined column exist. Without this, this is what we get:

undefined method `type' for nil:NilClass

crypt_keeper (0.6.0) lib/crypt_keeper/model.rb:98:in `ensure_field_is_encryptable!'
crypt_keeper (0.6.0) lib/crypt_keeper/model.rb:91:in `block in define_crypt_keeper_callbacks'
crypt_keeper (0.6.0) lib/crypt_keeper/model.rb:90:in `each'
crypt_keeper (0.6.0) lib/crypt_keeper/model.rb:90:in `define_crypt_keeper_callbacks'
crypt_keeper (0.6.0) lib/crypt_keeper/model.rb:52:in `crypt_keeper'