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.pre.21 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.20 lib/praxis/extensions/rails_compat/request_methods.rb
praxis-2.0.pre.19 lib/praxis/extensions/rails_compat/request_methods.rb