Permalink
Browse files

mark SQL literals as SQL literals

  • Loading branch information...
1 parent 4f945e9 commit e1e712227197bcfb9564113eb3dd8ef6ffac243f @tenderlove tenderlove committed Aug 25, 2010
@@ -26,7 +26,7 @@ def has_primary_key?
def construct_find_options!(options)
options[:joins] = Arel::SqlLiteral.new @join_sql
options[:readonly] = finding_with_ambiguous_select?(options[:select] || @reflection.options[:select])
- options[:select] ||= (@reflection.options[:select] || '*')
+ options[:select] ||= (@reflection.options[:select] || Arel::SqlLiteral.new('*'))
end
def count_records

0 comments on commit e1e7122

Please sign in to comment.