Sha256: 7d17d6011a4083293442681d6225dd16fc203ed98618bd001bb72aa733334e8d

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true

class ThinkingSphinx::Railtie < Rails::Railtie
  initializer 'thinking_sphinx.initialisation' do
    ActiveSupport.on_load(:active_record) do
      ActiveRecord::Base.send :include, ThinkingSphinx::ActiveRecord::Base
    end
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thinking-sphinx-4.1.0 lib/thinking_sphinx/railtie.rb
thinking-sphinx-4.0.0 lib/thinking_sphinx/railtie.rb