Sha256: 68d590bcfc26f62ec7f7dbd3d64e3f8a753c838f713c7c777317c86ea74b21b2

Contents?: true

Size: 488 Bytes

Versions: 20

Compression:

Stored size: 488 Bytes

Contents

# 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

20 entries across 20 versions & 1 rubygems

Version Path
praxis-2.0.pre.18 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.17 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.16 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.15 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.14 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.13 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.12 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.11 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.10 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.9 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.8 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.7 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.6 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.5 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.4 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.3 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.2 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.1 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-0.22.pre.2 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-0.22.pre.1 lib/praxis/extensions/rails_compat/request_methods.rb