Sha256: 064315ec54e1430803f98b44a50dc7ffa20dc81d3d9ca3488f96aaa858eece36

Contents?: true

Size: 559 Bytes

Versions: 6

Compression:

Stored size: 559 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[:project_token] = User.first.short_token
      #  end
      # end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wovnrb-2.0.5 lib/wovnrb/railtie.rb
wovnrb-2.0.4 lib/wovnrb/railtie.rb
wovnrb-2.0.3 lib/wovnrb/railtie.rb
wovnrb-2.0.2 lib/wovnrb/railtie.rb
wovnrb-2.0.1 lib/wovnrb/railtie.rb
wovnrb-2.0.0 lib/wovnrb/railtie.rb