Giter VIP home page Giter VIP logo

Comments (6)

rzane avatar rzane commented on July 30, 2024

I think the problem here is that you're using symbols. BabySqueel doesn't support that.

scope = scope.joins{dog}.where{dog.name = my{name}} if name.present?
scope = scope.joins{dog}.where{dog.breed = my{breed}} if breed.present?

from baby_squeel.

kbaum avatar kbaum commented on July 30, 2024

Apologize.. the symbols was just a typo. I am updating the example.

from baby_squeel.

rzane avatar rzane commented on July 30, 2024

I'm having trouble reproducing your issue. I tried to test your explanation as best I could here:
https://gist.github.com/rzane/2a331dad471e8a299a5da8d0a6ec80bc

Could you try to provide me with a reproduction case based off of that gist?

Also, note that there is a spec for this behavior. See:

it 'ensures that the join values are unique' do

from baby_squeel.

rzane avatar rzane commented on July 30, 2024

Hi @kbaum, I'm still unable to reproduce this issue. If this is a bug, I'd really like to track it down.

from baby_squeel.

Schwad avatar Schwad commented on July 30, 2024

Hey, since I'm in the middle of Rails 5 upgrade / migrating from Squeel to Baby Squeel, I might be getting errors relatively similar to this in some spots. If I do, I'll try to post the info here. If it's not related, hopefully @kbaum will let us know.

from baby_squeel.

rzane avatar rzane commented on July 30, 2024

Thanks @Schwad!

from baby_squeel.

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.