smartinez87/exception_notification

View on GitHub
lib/exception_notifier/views/exception_notifier/_environment.text.erb

Summary

Maintainability
Test Coverage
<% filtered_env = @request.filtered_env -%>
<% max = filtered_env.keys.map(&:to_s).max { |a, b| a.length <=> b.length } -%>
<% filtered_env.keys.map(&:to_s).sort.each do |key| -%>
  * <%= raw safe_encode("%-*s: %s" % [max.length, key, inspect_object(filtered_env[key])]).strip %>
<% end -%>