The encryptors need to be initialized with a passphrase. What did you have
in mind?

Sent from my phone
On Jun 8, 2013 9:08 PM, "Joshua Priddle" <notifications@github.com> wrote:

> In lib/crypt_keeper/model.rb:
>
> >            raise "You must specify a valid encryptor `crypt_keeper :encryptor => :aes`"
> >          end
> >        end
> >
> > -      # Private: Define callbacks for encryption
> > -      def define_crypt_keeper_callbacks
> > -        after_save :decrypt_callback
> > -        after_find :decrypt_callback
> > -        before_save :encrypt_callback
> > -        before_save :enforce_column_types_callback
> > +      # Private: Checks if the encryptor response to dump and load
> > +      def valid_encryptor?
> > +        encryptor_klass.instance_methods.include?(:dump) &&
> > +          encryptor_klass.instance_methods.include?(:load)
> >        end
>
> I'd say *only* support class methods, like Marshal<http://ruby-doc.org/core-2.0/Marshal.html>does.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jmazzi/crypt_keeper/pull/45/files#r4603075>
> .
>