Permalink
Browse files

fix deprecation warnings

  • Loading branch information...
1 parent b430f50 commit 1e487538d4503a0a693adfd2eb784a7667cbe414 @wireframe wireframe committed Sep 20, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pacecar/associations.rb
@@ -31,7 +31,7 @@ def has_recent_records(*names)
protected
def conditions_for_name(name)
- "((select count(*) from #{connection.quote_table_name(name)} where #{connection.quote_table_name(name)}.#{connection.quote_column_name (reflections[name].respond_to?(:foreign_key) ? reflections[name].foreign_key : reflections[name].primary_key_name)} = #{quoted_table_name}.#{connection.quote_column_name primary_key} and #{connection.quote_table_name(name)}.#{connection.quote_column_name("created_at")} > :since_time) > 0)"
+ "((select count(*) from #{connection.quote_table_name(name)} where #{connection.quote_table_name(name)}.#{connection.quote_column_name(reflections[name].respond_to?(:foreign_key) ? reflections[name].foreign_key : reflections[name].primary_key_name)} = #{quoted_table_name}.#{connection.quote_column_name primary_key} and #{connection.quote_table_name(name)}.#{connection.quote_column_name("created_at")} > :since_time) > 0)"
end
end

0 comments on commit 1e48753

Please sign in to comment.