method

insert_before

insert_before(*args, &block)
public

No documentation available.

# File railties/lib/rails/configuration.rb, line 14
      def insert_before(*args, &block)
        @operations << [:insert_before, args, block]
      end

2Notes

Placing it within stack at certain level

davinjay · Dec 16, 20131 thank

where_you_want_it = 0 (begining of stack loaded first) Rails.application.config.middleware.insert_before(where_you_want_it, Module::Class)

Thanks davinjay!

joshuapinter · Apr 19, 2019

Your note was SUPER helpful so I wanted to leave more than just a "1 thank".

Cheers!