Module: Tinia

Defined in:
lib/tinia.rb,
lib/tinia/index.rb,
lib/tinia/search.rb,
lib/tinia/railtie.rb,
lib/tinia/connection.rb,
lib/tinia/exceptions.rb

Defined Under Namespace

Modules: ActiveRecord, Connection, Index, Search Classes: MissingSearchDomain, Railtie

Class Method Summary collapse

Class Method Details

.activate_active_record!Object

activate for ActiveRecord



15
16
17
# File 'lib/tinia.rb', line 15

def self.activate_active_record!
  ::ActiveRecord::Base.send(:extend, Tinia::ActiveRecord)
end

.connection(domain = "default") ⇒ Object



9
10
11
12
# File 'lib/tinia.rb', line 9

def self.connection(domain = "default")
  @connections ||= {}
  @connections[domain] ||= AWSCloudSearch::CloudSearch.new(domain)
end