Sha256: 1593a76c04357eb6d07a8ec53707103c75be8722ebf50b30024ea023c9c916bf

Contents?: true

Size: 516 Bytes

Versions: 23

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

# Make Praxis' request derive from ActionDispatch
if defined? Praxis::Request
  puts "IT seems that we're trying to redefine Praxis' request parent too late."
  puts '-> try to include the Rails compat pieces earlier in the bootstrap process (before Praxis::Request is requried)'
  exit(-1)
end

begin
  require 'praxis/request_superclassing'

  module Praxis
    require 'action_dispatch'
    Praxis.request_superclass = ::ActionDispatch::Request
  end
  require 'praxis/request'
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
praxis-2.0.0 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.40 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.39 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.38 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.37 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.36 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.35 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.34 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.33 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.32 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.31 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.30 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.29 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.28 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.27 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.26 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.25 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.24 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.23 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.22 lib/praxis/extensions/rails_compat/request_methods.rb