Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix overly aggressive escaping on databases that are not PostgreSQL
I am unsure if this is necessary for any other databases. Relevant to #171 Fixes #176 Fixes spree/spree#3936
- Loading branch information
Showing
4 changed files
with
54 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
module RansackHelper | ||
def quote_table_name(table) | ||
ActiveRecord::Base.connection.quote_table_name(table) | ||
end | ||
|
||
def quote_column_name(column) | ||
ActiveRecord::Base.connection.quote_column_name(column) | ||
end | ||
end |
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