Class: Babl::ActionView::TemplateHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/babl/railtie.rb

Class Method Summary collapse

Class Method Details

.cached_templatesObject



9
10
11
# File 'lib/babl/railtie.rb', line 9

def cached_templates
    @cached_templates ||= {}
end

.call(template) ⇒ Object



13
14
15
# File 'lib/babl/railtie.rb', line 13

def call(template)
    Babl.config.cache_templates ? cached_call(template) : uncached_call(template)
end