Skip to content
Browse files

Further improve RENDER_DEPENDENCY regexp comments

  • Loading branch information...
1 parent 979d327 commit e7c23a4a7a0a576231b9d77f4ec47f7f10eb7d42 @christos christos committed Aug 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/digestor.rb
View
2 actionpack/lib/action_view/digestor.rb
@@ -16,7 +16,7 @@ class Digestor
# render(message.topics) => render("topics/topic")
RENDER_DEPENDENCY = /
render\s* # render, followed by optional whitespace
- \(? # start a optional parenthesis for the render call
+ \(? # 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
/x

0 comments on commit e7c23a4

Please sign in to comment.
Something went wrong with that request. Please try again.