Sha256: 6ad9ec58e85fc735ed60bd635b238201313a8b43af55c267db67fc0f21765a2b

Contents?: true

Size: 325 Bytes

Versions: 1

Compression:

Stored size: 325 Bytes

Contents

require 'neoid/middleware'

module Neoid
  class Railtie < Rails::Railtie
    initializer 'neoid.configure_rails_initialization' do
      config.after_initialize do
        Neoid.initialize_all
      end
    end

    initializer 'neoid.inject_middleware' do |app|
      app.middleware.use Neoid::Middleware
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neoid-0.2.1 lib/neoid/railtie.rb