Class: CanCan::ModelAdapters::Strategies::LeftJoin

Inherits:
Base
  • Object
show all
Defined in:
lib/cancan/model_adapters/strategies/left_join.rb

Instance Attribute Summary

Attributes inherited from Base

#adapter, #relation, #where_conditions

Instance Method Summary collapse

Methods inherited from Base

#aliased_table_name, #initialize, #quoted_aliased_table_name, #quoted_table_name

Constructor Details

This class inherits a constructor from CanCan::ModelAdapters::Strategies::Base

Instance Method Details

#execute!Object


5
6
7
# File 'lib/cancan/model_adapters/strategies/left_join.rb', line 5

def execute!
  relation.left_joins(joins).distinct
end