Skip to content

Commit

Permalink
[ci skip] Fix more quotes in direct/resolve docs
Browse files Browse the repository at this point in the history
Also correct use of `direct class:` to `resolve` in example.
  • Loading branch information
pixeltrix committed Feb 23, 2017
1 parent 594c7dc commit fd85bec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -2034,15 +2034,15 @@ module CustomUrls
# end
#
# direct :main do
# { controller: 'pages', action: 'index', subdomain: 'www' }
# { controller: "pages", action: "index", subdomain: "www" }
# end
#
# The return value from the block passed to `direct` must be a valid set of
# arguments for `url_for` which will actually build the url string. This can
# be one of the following:
#
# * A string, which is treated as a generated url
# * A hash, e.g. { controller: 'pages', action: 'index' }
# * A hash, e.g. { controller: "pages", action: "index" }
# * An array, which is passed to `polymorphic_url`
# * An Active Model instance
# * An Active Model class
Expand Down Expand Up @@ -2110,7 +2110,7 @@ def direct(name, options = {}, &block)
# You can pass options to a polymorphic mapping - the arity for the block
# needs to be two as the instance is passed as the first argument, e.g:
#
# direct class: "Basket", anchor: "items" do |basket, options|
# resolve "Basket", anchor: "items" do |basket, options|
# [:basket, options]
# end
#
Expand Down

0 comments on commit fd85bec

Please sign in to comment.