Please sign in to comment.
Revert "Merge pull request #13344 from ccutrer/fix-from-default-select"
This reverts commit 3ea8403, reversing changes made to e4cde5d. Conflicts: activerecord/CHANGELOG.md activerecord/lib/active_record/relation/query_methods.rb Reason: using `from` without `select` should not change the select list to SELECT * because it can lead different query results. If it is needed to change the table to a subquery or a view you can pass a table alias in the `from` call or use `select('subquery.*')`. Fixes #14049.
- Loading branch information...
Showing with 6 additions and 21 deletions.