Class: ThinkingSphinx::ActiveRecord::SourceJoins

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/active_record/source_joins.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, source) ⇒ SourceJoins

Returns a new instance of SourceJoins.



8
9
10
# File 'lib/thinking_sphinx/active_record/source_joins.rb', line 8

def initialize(model, source)
  @model, @source = model, source
end

Class Method Details

.call(model, source) ⇒ Object



4
5
6
# File 'lib/thinking_sphinx/active_record/source_joins.rb', line 4

def self.call(model, source)
  new(model, source).call
end

Instance Method Details

#callObject



12
13
14
15
16
17
# File 'lib/thinking_sphinx/active_record/source_joins.rb', line 12

def call
  append_specified_associations
  append_property_associations

  joins
end