Class: ThinkingSphinx::ActiveRecord::SQLBuilder::Query
- Inherits:
-
Object
- Object
- ThinkingSphinx::ActiveRecord::SQLBuilder::Query
show all
- Defined in:
- lib/thinking_sphinx/active_record/sql_builder/query.rb
Instance Method Summary
collapse
Constructor Details
#initialize(report) ⇒ Query
4
5
6
7
|
# File 'lib/thinking_sphinx/active_record/sql_builder/query.rb', line 4
def initialize(report)
self.report = report
self.scope = []
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
38
39
40
|
# File 'lib/thinking_sphinx/active_record/sql_builder/query.rb', line 38
def method_missing(*args, &block)
report.send *args, &block
end
|
Instance Method Details
#to_query ⇒ Object
9
10
11
12
13
|
# File 'lib/thinking_sphinx/active_record/sql_builder/query.rb', line 9
def to_query
filter_by_query_pre
scope.compact
end
|