Git Product home page Git Product logo

Comments (8)

jmazzi avatar jmazzi commented on August 29, 2024

Can you show me the crypt_keeper line in your model (without the password or salt)? Can you also provide the ActiveRecord query you used?

from crypt_keeper.

komalkamble avatar komalkamble commented on August 29, 2024

Hello Justin,

Here is requested info
-crypt_keeper line in model
crypt_keeper :blood_group,:weight,:exercise, :encryptor => :aes_new,
:encoding => 'UTF-8'

-ActiveRecord query

@persons = Person.where("lower(fullname) like ? ",
"%#{params[:term].downcase}%").select("fullname AS name", "id")

Thanks,

On Tue, Sep 23, 2014 at 8:36 PM, Justin Mazzi [email protected]
wrote:

Can you show me the crypt_keeper line in your model (without the password
or salt)? Can you also provide the ActiveRecord query you used?


Reply to this email directly or view it on GitHub
#81 (comment).

from crypt_keeper.

edulan avatar edulan commented on August 29, 2024

Hi,

I think the issue is related to #force_encodings_on_fields method. This method iterates over defined encrypted fields, and uses String#force_encoding method to do the encoding conversion. But when selecting a model attributes subset in a query, some attributes may not be present in the model attributes hash, causing the missing_attribute error.

I would submit a pull request with the fix as soon as I can dedicate my time to it.

Cheers.

from crypt_keeper.

jmazzi avatar jmazzi commented on August 29, 2024

@komalkamble can you try using the bugfix/missing_attribute branch?

from crypt_keeper.

jmazzi avatar jmazzi commented on August 29, 2024

@komalkamble @edulan the fixed version has been releases as 0.18.3.

from crypt_keeper.

edulan avatar edulan commented on August 29, 2024

@jmazzi thanks!

from crypt_keeper.

komalkamble avatar komalkamble commented on August 29, 2024

I am apologies for late response.
@jmazzi @edulan thank you very much. It's working fine.
Thanks!!!

On Mon, Oct 20, 2014 at 10:43 PM, Eduardo Lanchares <
[email protected]> wrote:

@jmazzi https://github.com/jmazzi thanks!


Reply to this email directly or view it on GitHub
#81 (comment).

from crypt_keeper.

jmazzi avatar jmazzi commented on August 29, 2024

@komalkamble @edulan no problem!

from crypt_keeper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.