aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorJack Danger Canty <jackdanger@squareup.com>2014-11-04 17:46:40 -0800
committerJack Danger Canty <jackdanger@squareup.com>2014-11-04 17:52:13 -0800
commitd692b829b53491e1145502311f4390daffb60686 (patch)
tree572930cc37768ada3913d95c23398f3def3e6fbb /actionview
parentffb6d37c04d7a97be612edc0cb9ffac69171c269 (diff)
downloadrails-d692b829b53491e1145502311f4390daffb60686.tar.gz
rails-d692b829b53491e1145502311f4390daffb60686.tar.bz2
rails-d692b829b53491e1145502311f4390daffb60686.zip
Using the real resolver pattern in docs
If someone copies the docs into their app they'll find it simply doesn't work because the locale pattern doesn't have the same logic. This makes the doc examples work exactly as written. [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/template/resolver.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/template/resolver.rb b/actionview/lib/action_view/template/resolver.rb
index b65507f4a2..8af1821f3e 100644
--- a/actionview/lib/action_view/template/resolver.rb
+++ b/actionview/lib/action_view/template/resolver.rb
@@ -289,7 +289,7 @@ module ActionView
#
# ActionController::Base.view_paths = FileSystemResolver.new(
# Rails.root.join("app/views"),
- # ":prefix{/:locale}/:action{.:formats,}{+:variants,}{.:handlers,}"
+ # ":prefix/:action{.:locale,}{.:formats,}{+:variants,}{.:handlers,}",
# )
#
# ==== Pattern format and variables