method

build

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
build(scope, set, path, as, options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 68
        def self.build(scope, set, path, as, options)
          options = scope[:options].merge(options) if scope[:options]

          options.delete :only
          options.delete :except
          options.delete :shallow_path
          options.delete :shallow_prefix
          options.delete :shallow

          defaults = (scope[:defaults] || {}).merge options.delete(:defaults) || {}

          new scope, set, path, defaults, as, options
        end
Register or log in to add new notes.