Sha256: 4080f5c22e92310769535173deb403ac72050216ecad68da2e065b8b7afaf055

Contents?: true

Size: 595 Bytes

Versions: 90

Compression:

Stored size: 595 Bytes

Contents

# frozen_string_literal: true

module AbstractController
  module Railties
    module RoutesHelpers
      def self.with(routes, include_path_helpers = true)
        Module.new do
          define_method(:inherited) do |klass|
            super(klass)
            if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_routes_url_helpers) }
              klass.include(namespace.railtie_routes_url_helpers(include_path_helpers))
            else
              klass.include(routes.url_helpers(include_path_helpers))
            end
          end
        end
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 5 rubygems

Version Path
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
spiral_form-0.1.1 vendor/bundle/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
spiral_form-0.1.0 vendor/bundle/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.7 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.6 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.5 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.4 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.3 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.2 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.1 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.9.0 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.8.14 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.8.13 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb
jets-1.8.12 vendor/rails/actionpack/lib/abstract_controller/railties/routes_helpers.rb