Module: Fortitude::Rails::RenderingMethods::ActionControllerOverrides

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

Instance Method Summary collapse

Instance Method Details

#add_renderer_uniwith_fortitude(original_method, key, *args, &block) ⇒ Object



97
98
99
100
101
102
103
104
# File 'lib/fortitude/rails/rendering_methods.rb', line 97

def add_renderer_uniwith_fortitude(original_method, key, *args, &block)
  if key == :_fortitude_widget
    original_method.call(:widget, *args, &block)
  else
    original_method.call(key, *args, &block)
    ::Fortitude::Rails::RenderingMethods._fortitude_register_renderer!
  end
end