Fix: wrong number of arguments (given 2, expected 0..1)
This commit is contained in:
parent
6e551927ec
commit
a0fddc9072
|
@ -41,7 +41,7 @@ module Impressionist
|
|||
|
||||
# Count all distinct impressions unless the :all filter is provided.
|
||||
distinct = options[:filter] != :all
|
||||
if Rails::VERSION::MAJOR == 4
|
||||
if Rails::VERSION::MAJOR >= 4
|
||||
distinct ? imps.select(options[:filter]).distinct.count : imps.count
|
||||
else
|
||||
distinct ? imps.count(options[:filter], :distinct => true) : imps.count
|
||||
|
|
Loading…
Reference in New Issue