This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new ActiveRecord 3+ query interface
Rails 4 has deprecated the old interface. This mostly copies the Sequel code. Since SQL parsing is supported but now deprecated, and Rails is going to require a separate references call to get Sequel's eager_graph behavior, add a scaffold_use_references method to ActiveRecord similar to scaffold_use_eager_graph for Sequel. Merging conditions into a single SQL string is no longer necessary, so remove scaffold_merge_conditions from the ActiveRecord adapter.
- Loading branch information
1 parent
3315057
commit bec2e12
Showing
1 changed file
with
31 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters