Skip to content

Commit

Permalink
marking sql literals as sql literals
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 24, 2010
1 parent a1ca2e0 commit 36fcc99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36fcc99

Please sign in to comment.