Comments (3)
The easy solution is to just say state_id.in(State.select(:id))
.
I understand why you'd expect this to be the default implicit behavior, but consider the possibility where you might actually want to say:
City.where { state_id.in(State.select(:some_other_id)) }
from baby_squeel.
Yes, thanks
I was just imagining if there was not a way to just keep it working in the old way.
With this change, i will need to change a lot of places.
from baby_squeel.
Yeah, sorry :(
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
- Update ransack to 4.1 HOT 1
- Boolean column reference without operator is only sometimes supported HOT 8
- Error when merging compound condition with implicit reference to boolean column in Rails 7.0.8
- 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.