Skip to content

Commit 8d02019

Browse files
authored
Merge pull request rails#52966 from mjankowski/dispatch-routing-mapper-doc-code-example
Render rdoc code example for routing `defaults` method [ci skip]
2 parents 67b4a16 + 388230d commit 8d02019

File tree

1 file changed

+1
-0
lines changed
  • actionpack/lib/action_dispatch/routing

1 file changed

+1
-0
lines changed

actionpack/lib/action_dispatch/routing/mapper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ def constraints(constraints = {}, &block)
10531053
end
10541054

10551055
# Allows you to set default parameters for a route, such as this:
1056+
#
10561057
# defaults id: 'home' do
10571058
# match 'scoped_pages/(:id)', to: 'pages#show'
10581059
# end

0 commit comments

Comments
 (0)