Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ActiveRecord < 3 joins tables in incorect order

  • Loading branch information...
commit 2967a55b3ab76b95b3883bf4d4f2b4f814203768 1 parent bbaa1a6
Kamil Giszczak authored tomeric committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb
View
4 lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb
@@ -87,7 +87,9 @@ def all_tag_counts(options = {})
tagging_join,
taggable_join,
scope[:joins]
- ].compact.reverse
+ ].compact
+
+ joins = joins.reverse if ActiveRecord::VERSION::MAJOR < 3
## Generate scope:
Please sign in to comment.
Something went wrong with that request. Please try again.