Sha256: d856a60df4d1ab41abdcf952308b5f2a3d144a5628bce4e540f7f5921a134150

Contents?: true

Size: 300 Bytes

Versions: 3

Compression:

Stored size: 300 Bytes

Contents

class ThinkingSphinx::Railtie < Rails::Railtie
  initializer 'thinking_sphinx.initialisation' do
    if defined?(ActiveRecord::Base)
      ActiveRecord::Base.send :include, ThinkingSphinx::ActiveRecord::Base
    end
  end

  rake_tasks do
    load File.expand_path('../tasks.rb', __FILE__)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
thinking-sphinx-3.2.0 lib/thinking_sphinx/railtie.rb
thinking-sphinx-3.1.4 lib/thinking_sphinx/railtie.rb
thinking-sphinx-3.1.3 lib/thinking_sphinx/railtie.rb