Comments (6)
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.
Apologize.. the symbols was just a typo. I am updating the example.
from baby_squeel.
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:
baby_squeel/spec/integration/joining_spec.rb
Line 250 in 57258fd
from baby_squeel.
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.
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.
Thanks @Schwad!
from baby_squeel.
Related Issues (20)
- Broken image in README.md HOT 2
- Breaks with Rails 6.0.0 HOT 28
- Breaks all Rails 5 has_many through relationship HOT 2
- Wrong table name when joining a polymorphic table twice HOT 2
- left_joins performs INNER JOIN with ActiveRecord 6.1.4.4 HOT 4
- Nested merge-joins query causes NoMethodError with ActiveRecord 6.1.4.4 HOT 3
- The 5.2 Builds are failing with the latest ransack version. HOT 1
- subqueries comparing with same table impossible HOT 1
- Jsonb Selectors HOT 2
- Support Arel.star HOT 1
- Reordering without explicit direction doesn't work with last in Rails 4 HOT 1
- Rails 5.2 support HOT 5
- Reference parent columns from subquery HOT 3
- Arel Deprecation Warning with Rails 5.2 HOT 2
- Intelligent Update queries
- Support `.nil?` in DSL HOT 4
- Sifters don't work on on-the-fly tables
- Gem breaking with Rails 5.2.1 HOT 1
- Breaks with Rails 5.2.1 HOT 57
- Boolean casting goes haywire when using SQL alias HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from baby_squeel.