Permalink
Browse files

marking sql literals as sql literals

  • Loading branch information...
1 parent a1ca2e0 commit 36fcc99cced134f897f9106d63ae9cdf35ed8f5f @tenderlove tenderlove committed Aug 24, 2010
@@ -24,7 +24,7 @@ def has_primary_key?
protected
def construct_find_options!(options)
- options[:joins] = @join_sql
+ options[:joins] = Arel::SqlLiteral.new @join_sql
options[:readonly] = finding_with_ambiguous_select?(options[:select] || @reflection.options[:select])
options[:select] ||= (@reflection.options[:select] || '*')
end

0 comments on commit 36fcc99

Please sign in to comment.