Skip to content

Commit

Permalink
fix :any => true error thrown in sqlite3 rails 3.1 by quoting table name
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Weber committed Sep 20, 2011
1 parent 5337cfb commit ff7983c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/acts_as_taggable_on/core.rb
Expand Up @@ -100,7 +100,7 @@ def tagged_with(tags, options = {})

# don't need to sanitize sql, map all ids and join with OR logic
conditions << tags.map { |t| "#{taggings_alias}.tag_id = #{t.id}" }.join(" OR ")
select_clause = "DISTINCT #{table_name}.*" unless context and tag_types.one?
select_clause = "DISTINCT \"#{table_name}\".*" unless context and tag_types.one?

joins << tagging_join

Expand Down

0 comments on commit ff7983c

Please sign in to comment.