helmet 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/helmet/templates.rb +2 -0
  2. metadata +1 -1
@@ -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
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: helmet
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Thiago Lewin