Yeah, I thought about that after I added it. Gonna remove it 0210890  

--  
Justin Mazzi


On Monday, September 30, 2013 at 3:38 PM, Joshua Priddle wrote:

> In lib/crypt_keeper/model.rb:
> > @@ -56,6 +56,16 @@ def crypt_keeper(*args) > end > end > > + def search_by_plaintext(field, criteria) > + encryptor = encryptor_klass.new(crypt_keeper_options) > + > + if encryptor.respond_to?(:search)  
> I think you should just let this raise the normal NoMethodError.
> Eg:
> def search_by_plaintext(field, criteria) encryptor_klass.new(crypt_keeper_options).search(all, field.to_sym, criteria) end  
>  
> It would be something like: NoMethodError: undefined methodsearch' for #<#Class:0x007fe71bea6b68:0x007fe71bea6b18>`
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/jmazzi/crypt_keeper/pull/53/files#r6668541).
>  
>  
>