Skip to content

Commit

Permalink
Improve RENDER_DEPENDENCY regexp comment to keep the doc editor happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christos Zisopoulos committed Aug 30, 2012
1 parent 17f2499 commit 979d327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/digestor.rb
Expand Up @@ -15,7 +15,7 @@ class Digestor
# render(topics) => render("topics/topic") # render(topics) => render("topics/topic")
# render(message.topics) => render("topics/topic") # render(message.topics) => render("topics/topic")
RENDER_DEPENDENCY = / 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 \(? # start a optional parenthesis for the render call
(partial:|:partial\s+=>)?\s* # naming the partial, used with collection -- 1st capture (partial:|:partial\s+=>)?\s* # naming the partial, used with collection -- 1st capture
([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture ([@a-z"'][@a-z_\/\."']+) # the template name itself -- 2nd capture
Expand Down

0 comments on commit 979d327

Please sign in to comment.