lib/hightop/enumerable.rb in hightop-0.4.0 vs lib/hightop/enumerable.rb in hightop-0.5.0
- old
+ new
@@ -15,10 +15,10 @@
arr = counts.sort_by { |_, v| -v }
arr = arr[0...limit] if limit
Hash[arr]
elsif respond_to?(:scoping)
- scoping { @klass.send(:top, *args, **options, &block) }
+ scoping { klass.send(:top, *args, **options, &block) }
else
with_scope(self) { klass.send(:top, *args, **options, &block) }
end
end
end