Permalink
Browse files

Improve RENDER_DEPENDENCY regexp comment to keep the doc editor happy.

  • Loading branch information...
1 parent 17f2499 commit 979d327e1e0da9f0e990d5b5edcef752ffce5d54 Christos Zisopoulos committed Aug 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/digestor.rb
@@ -15,7 +15,7 @@ class Digestor
# render(topics) => render("topics/topic")
# render(message.topics) => render("topics/topic")
RENDER_DEPENDENCY = /
- render\s* # render, followed by an optional space
+ render\s* # render, followed by optional whitespace
\(? # start a 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

0 comments on commit 979d327

Please sign in to comment.