Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

FIX: Prevent syntax errors when having a comment block at the end of …

…a view
  • Loading branch information...
commit 9c6bc1ffaa3f344282d172dec9d901e015dce2f8 1 parent 12a3b46
Víctor Martínez knoopx authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 lib/arbre/rails/template_handler.rb
10 lib/arbre/rails/template_handler.rb
... ... @@ -1,14 +1,14 @@
1 1 module Arbre
2 2 module Rails
3   -
4 3 class TemplateHandler
5   -
6 4 def call(template)
7   - "Arbre::Context.new(assigns, self){ #{template.source} }.to_s"
  5 + <<-END
  6 + Arbre::Context.new(assigns, self) {
  7 + #{template.source}
  8 + }.to_s
  9 + END
8 10 end
9   -
10 11 end
11   -
12 12 end
13 13 end
14 14

0 comments on commit 9c6bc1f

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