We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da76a47 commit 598f353Copy full SHA for 598f353
lib/scrooge.rb
@@ -75,7 +75,7 @@ def callsite( signature )
75
# Link the column to its table
76
#
77
def attribute_with_table( attr_name )
78
- "#{quoted_table_name}.#{attr_name.to_s}"
+ "#{quoted_table_name}.#{connection.quote_column_name(attr_name.to_s)}"
79
end
80
81
# Computes a unique signature from a given call stack and supplementary
@@ -95,4 +95,4 @@ def callsite_signature( call_stack, supplementary )
95
96
97
Scrooge::Optimizations::Columns::Macro.install!
98
-Scrooge::Optimizations::Associations::Macro.install!
+Scrooge::Optimizations::Associations::Macro.install!
0 commit comments