-
-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "unknown column" exception (#943)
When custom `slug_column` is used along with `history` and `sequentially_slugged` modules, wrong query was being formed on `Slug` model. Query being made - `select friendly_id_slugs."strange name" from artists` Query which should be made - `select friendly_id_slugs.slug from artists` This commit fixes it to use default `slug` column in such case. Co-authored-by: Philip Arndt <git@p.arndt.io>
- Loading branch information
1 parent
d11fb03
commit 2b29ae7
Showing
2 changed files
with
31 additions
and
5 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
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