Class: Embork::Environment::ErblessCache

Inherits:
Sprockets::Cache::FileStore
  • Object
show all
Defined in:
lib/embork/environment.rb

Instance Method Summary collapse

Instance Method Details

#[]=(key, value) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/embork/environment.rb', line 13

def []=(key, value)
  # This is ugly, but it keeps ERB fresh
  if value.has_key?('pathname') && value["pathname"].match(/\.erb($|\.)/)
    value
  else
    super
  end
end