]> git.wincent.com - wikitext.git/commitdiff
Fit "compile" method onto 1 line
authorWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 15:37:04 +0000 (17:37 +0200)
committerWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 15:37:04 +0000 (17:37 +0200)
Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/wikitext/rails.rb

index 72d94723524b5ba2f53b8acd793771967a03a610..48714e4852fd6962f34818f4272fc67aa4767986 100644 (file)
@@ -35,9 +35,7 @@ module ActionView
           include Compilable
 
           def compile template
-            "'" +
-              template.source.w.gsub("'", "\\\\'") +
-              "'"
+            "'" + template.source.w.gsub("'", "\\\\'") + "'"
           end
         end # class Wikitext