helmet 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helmet/templates.rb +2 -0
- metadata +1 -1
data/lib/helmet/templates.rb
CHANGED
@@ -11,6 +11,8 @@ module Helmet
|
|
11
11
|
|
12
12
|
def render(engine, data, options = {}, locals = {}, &block)
|
13
13
|
layout = options.delete(:layout)
|
14
|
+
# force template update
|
15
|
+
@@template_cache.clear unless Goliath.env == :production
|
14
16
|
compiled_template = @@template_cache.fetch(data, options) do
|
15
17
|
template = Tilt.new(find_template(engine, data), nil, options)
|
16
18
|
end
|