1
0
Fork 0
mirror of https://github.com/activerecord-hackery/ransack.git synced 2022-11-09 13:47:45 -05:00
activerecord-hackery--ransack/spec/helpers/ransack_helper.rb
Ryan Bigg 6060acf870 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
2013-11-06 17:20:51 +11:00

9 lines
No EOL
217 B
Ruby

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