Class: DevelopmentModePlugin

Inherits:
Object
  • Object
show all
Defined in:
lib/hypernova/plugins/development_mode_plugin.rb

Instance Method Summary collapse

Instance Method Details

#after_response(current_response, _) ⇒ Object



4
5
6
7
8
# File 'lib/hypernova/plugins/development_mode_plugin.rb', line 4

def after_response(current_response, _)
  current_response.each do |name, result|
    current_response[name] = result.merge({ "html" => render(name, result) }) if result["error"]
  end
end