Skip to content

Commit

Permalink
Fix crash in rails 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Apr 18, 2014
1 parent d9eaf0b commit 3b887e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/acts_as_taggable_on/acts_as_taggable_on/collection.rb
Expand Up @@ -158,8 +158,8 @@ def tag_counts_on(context, options={})
end

module CalculationMethods
def count
return super if ActsAsTaggableOn::Utils.active_record42?
def count(column_name = nil)
return super(column_name) if ActsAsTaggableOn::Utils.active_record42?
# https://github.com/rails/rails/commit/da9b5d4a8435b744fcf278fffd6d7f1e36d4a4f2
super(:all)
end
Expand Down

0 comments on commit 3b887e7

Please sign in to comment.