aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
diff options
context:
space:
mode:
authorBryan Ricker <bricker88@gmail.com>2013-04-29 15:42:16 -0700
committerBryan Ricker <bricker88@gmail.com>2013-05-06 18:30:29 -0700
commit3c516c4b5278c27d55425f7c2f875ca1cd2e8511 (patch)
treee12dc6a87170da37bbbe591659d804c5b53050ad /actionpack/lib/action_view
parent17c1143af91fac5d1b6465ed5ad26315b1a2ec27 (diff)
downloadrails-3c516c4b5278c27d55425f7c2f875ca1cd2e8511.tar.gz
rails-3c516c4b5278c27d55425f7c2f875ca1cd2e8511.tar.bz2
rails-3c516c4b5278c27d55425f7c2f875ca1cd2e8511.zip
Allow numbers in partial name for digesting
Add failing test for template with number at the end Use \w for RENDER_DEPENDENCY regex Spacing Add CHANGELOG entry
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r--actionpack/lib/action_view/dependency_tracker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/dependency_tracker.rb b/actionpack/lib/action_view/dependency_tracker.rb
index a2a555dfcb..45d17be605 100644
--- a/actionpack/lib/action_view/dependency_tracker.rb
+++ b/actionpack/lib/action_view/dependency_tracker.rb
@@ -39,7 +39,7 @@ module ActionView
render\s* # render, followed by optional whitespace
\(? # start an optional parenthesis for the render call
(partial:|:partial\s+=>)?\s* # naming the partial, used with collection -- 1st capture
- ([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
+ ([@a-z"'][@\w\/\."']+) # the template name itself -- 2nd capture
/x
def self.call(name, template)