Module: ThinkingSphinx::Frameworks

Defined in:
lib/thinking_sphinx/frameworks.rb

Defined Under Namespace

Classes: Plain, Rails

Class Method Summary collapse

Class Method Details

.currentObject



4
5
6
7
# File 'lib/thinking_sphinx/frameworks.rb', line 4

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