Sha256: bbeef3fa58c248f202157c190f613718f16290f01397a970b9cafe6c6742a83a

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 Bytes

Contents

# MONKEY PATCH!!!
# https://github.com/rails/rails/pull/32296
#
# Fixes:
# * Development mode deadlocks
# * ArgumentError: unknown firstpos: NilClass
#
# Allows use of "config.eager_load = true
# Will probably be included in Rails 5.2


module ActionDispatch
    module Journey
      class Routes
        def simulator
          @simulator ||= begin
            gtg = GTG::Builder.new(ast).transition_table unless ast.blank?
            GTG::Simulator.new(gtg)
          end
        end
      end
    end
  end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whodat-1.0.1 spec/dummy/config/initializers/routes.rb
whodat-1.0.0 spec/dummy/config/initializers/routes.rb