Sha256: 9e6dba7d9da2ddbc6a919c5707efa054c561c3be78e8cbf3dffc6a2ab8e20ccd
Contents?: true
Size: 487 Bytes
Versions: 28
Compression:
Stored size: 487 Bytes
Contents
module AbstractController module Railties module RoutesHelpers def self.with(routes) Module.new do define_method(:inherited) do |klass| super(klass) if namespace = klass.parents.detect {|m| m.respond_to?(:_railtie) } klass.send(:include, namespace._railtie.routes.url_helpers) else klass.send(:include, routes.url_helpers) end end end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems