musterb 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/musterb/template_handler.rb +1 -1
- data/lib/musterb/version.rb +1 -1
- metadata +1 -1
@@ -7,7 +7,7 @@ module Musterb::TemplateHandler
|
|
7
7
|
|
8
8
|
def self.call(template)
|
9
9
|
options = {:render_partial_template => method(:render_partial_template)}
|
10
|
-
options[:initial_context] = "initial_context" if template.locals.include?
|
10
|
+
options[:initial_context] = "initial_context" if template.locals.include? "initial_context"
|
11
11
|
erb = Musterb.to_erb(template.source, options)
|
12
12
|
klass = ActionView::Template::Handlers::ERB
|
13
13
|
klass.erb_implementation.new(erb, :trim => (klass.erb_trim_mode == "-")).src
|
data/lib/musterb/version.rb
CHANGED