Module: ThinkingSphinx::Frameworks

Defined in:
lib/thinking_sphinx/frameworks.rb

Defined Under Namespace

Classes: Plain, Rails

Class Method Summary (collapse)

Class Method Details

+ (Object) current



2
3
4
5
# File 'lib/thinking_sphinx/frameworks.rb', line 2

def self.current
  defined?(::Rails) ? ThinkingSphinx::Frameworks::Rails.new :
    ThinkingSphinx::Frameworks::Plain.new
end