Skip to content

Commit

Permalink
Fixed :conditions in tag_counts to accept array to sanitize
Browse files Browse the repository at this point in the history
  • Loading branch information
Clinton R. Nixon committed Mar 13, 2008
1 parent 20ff586 commit 5dd744c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
@@ -1,6 +1,7 @@
[13 March 08]

* Added helper methods for will_paginate compatibility (Clinton R. Nixon)
* Fixed :conditions in tag_counts to accept array to sanitize (Clinton R. Nixon)

[07 March 08]

Expand Down
2 changes: 1 addition & 1 deletion lib/acts_as_taggable.rb
Expand Up @@ -116,7 +116,7 @@ def find_options_for_tag_counts(options = {})

conditions = [
"#{Tagging.table_name}.taggable_type = #{quote_value(base_class.name)}",
options.delete(:conditions),
sanitize_sql(options.delete(:conditions)),
scope && scope[:conditions],
start_at,
end_at
Expand Down

0 comments on commit 5dd744c

Please sign in to comment.