src/main/ruby/jruby/rack/rails.rb
# This hook method is called back from within the mechanism installed
# by rails_boot above. We're setting appropriate defaults for the
# servlet environment here that can still be overridden (if desired) in
# the application's environment files.
This hook method is called back from within the mechanism installed
by rails_boot above. We're setting appropriate defaults for the
servlet environment here that can still be overridden (if desired) in
the application's environment files.
This hook method is called back from within the mechanism installed by rails_boot above . We ' re setting appropriate defaults for the servlet environment here that can still be overridden ( if desired ) in the application ' s environment files .
def boot_for_servlet_environment(initializer)
        initializer_class = initializer.class
        initializer_class.module_eval do
          alias_method :require_frameworks_without_servlet_env, :require_frameworks
          def require_frameworks_with_servlet_env
            JRuby::Rack.booter.before_require_frameworks
            require_frameworks_without_servlet_env
            JRuby::Rack.booter.setup_actionpack
          end
          alias_method :require_frameworks, :require_frameworks_with_servlet_env
        end
      end
def boot_for_servlet_environment ( initializer ) initializer_class = initializer . class initializer_class . module_eval do alias_method :require_frameworks_without_servlet_env , :require_frameworks def require_frameworks_with_servlet_env JRuby :: Rack . booter . before_require_frameworks require_frameworks_without_servlet_env JRuby :: Rack . booter . setup_actionpack end alias_method :require_frameworks , :require_frameworks_with_servlet_env end end
This hook method is called back from within the mechanism installed
by rails_boot above.
This hook method is called back from within the mechanism installed by rails_boot above .
initializer
<not_specific>