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