Update lib/cancan/model_adapters/active_record_adapter.rb

Add uniq to join in ActiveRecord adapter