Permalink
Browse files

marking sql literals as sql literals

  • Loading branch information...
1 parent ecbdec1 commit 6f4d100761f3dd453e9049837c61d6cf025fc03c @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 6f4d100

Please sign in to comment.