aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/lib/fixture_template.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-16 02:08:34 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-16 02:09:16 +0100
commit8dd731bc502a07f4fb76eb2706a1f3bca479ef63 (patch)
tree469e95a8f2f17b06250189d34211cef435a885c7 /actionpack/test/lib/fixture_template.rb
parent1f5e2f2bad3c33ec52312a1700bacf06a71875a5 (diff)
downloadrails-8dd731bc502a07f4fb76eb2706a1f3bca479ef63.tar.gz
rails-8dd731bc502a07f4fb76eb2706a1f3bca479ef63.tar.bz2
rails-8dd731bc502a07f4fb76eb2706a1f3bca479ef63.zip
Move more normalization up to the lookup context, so it does not have to repeat in every resolver.
Diffstat (limited to 'actionpack/test/lib/fixture_template.rb')
-rw-r--r--actionpack/test/lib/fixture_template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/lib/fixture_template.rb b/actionpack/test/lib/fixture_template.rb
index 02248d84ad..2e876d9249 100644
--- a/actionpack/test/lib/fixture_template.rb
+++ b/actionpack/test/lib/fixture_template.rb
@@ -12,7 +12,7 @@ module ActionView #:nodoc:
def query(partial, path, exts)
query = Regexp.escape(path)
exts.each do |ext|
- query << '(' << ext.map {|e| e && Regexp.escape(".#{e}") }.join('|') << ')'
+ query << '(' << ext.map {|e| e && Regexp.escape(".#{e}") }.join('|') << '|)'
end
templates = []