Sha256: 2ca807f42684e78010609e38f1ea7bd73c806f98c5298e75a8a75087999103be

Contents?: true

Size: 549 Bytes

Versions: 5

Compression:

Stored size: 549 Bytes

Contents

module Wovnrb

  class Railtie < Rails::Railtie
    initializer 'wovnrb.configure_rails_initialization' do |app|
      #app.middleware.insert_before(0, Wovnrb::Interceptor)
      begin
        app.middleware.insert_before(Rack::Runtime, Wovnrb::Interceptor)
      rescue
        app.middleware.insert_before(0, Wovnrb::Interceptor)
      end

      #if Rails.env.development? && config.respond_to?(:wovnrb)
      #  config.after_initialize do
      #    config.wovnrb[:user_token] = User.first.short_token
      #  end
      #end
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wovnrb-0.1.26 lib/wovnrb/railtie.rb
wovnrb-0.1.25 lib/wovnrb/railtie.rb
wovnrb-0.1.24 lib/wovnrb/railtie.rb
wovnrb-0.1.23 lib/wovnrb/railtie.rb
wovnrb-0.1.22 lib/wovnrb/railtie.rb