Sha256: bd5ee4b20586e9b63a17967af7ad54eb217bf8a00d799639d50e82545626a358

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

module Sunspot
  module Rails
    class Railtie < ::Rails::Railtie
      initializer 'sunspot_rails.init' do
        Sunspot.session = Sunspot::Rails.build_session
        ActiveSupport.on_load(:mongoid) do
          include(Sunspot::Rails::RequestLifecycle)
        end
      end

      rake_tasks do
        load 'sunspot/rails/tasks.rb'
      end

      generators do
        load "generators/sunspot_rails.rb"
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sunspot_mongoid-0.4.0 lib/sunspot/rails/railtie.rb