Module: Fortitude::Rails::RegisterTemplateHandlerOverrides

Defined in:
lib/fortitude/rails/template_handler.rb

Instance Method Summary collapse

Instance Method Details

#register_template_handler_uniwith_fortitude(original_method, *args, &block) ⇒ Object


53
54
55
56
57
58
59
# File 'lib/fortitude/rails/template_handler.rb', line 53

def register_template_handler_uniwith_fortitude(original_method, *args, &block)
  original_method.call(*args, &block)

  unless args[0] == :rb && args[1].instance_of?(::Fortitude::Rails::TemplateHandler)
    original_method.call(:rb, ::Fortitude::Rails::TemplateHandler.new)
  end
end