diff options
Diffstat (limited to 'vendor/plugins/exception_notification/views')
7 files changed, 39 insertions, 0 deletions
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml new file mode 100644 index 0000000..7d13ba0 --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml | |||
| @@ -0,0 +1 @@ | |||
| <%= @backtrace.join "\n" %> | |||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml new file mode 100644 index 0000000..42dd803 --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | <% max = @request.env.keys.max { |a,b| a.length <=> b.length } -%> | ||
| 2 | <% @request.env.keys.sort.each do |key| -%> | ||
| 3 | * <%= "%-*s: %s" % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %> | ||
| 4 | <% end -%> | ||
| 5 | |||
| 6 | * Process: <%= $$ %> | ||
| 7 | * Server : <%= `hostname -s`.chomp %> | ||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml new file mode 100644 index 0000000..e817847 --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | <% if show_attributes -%> | ||
| 2 | [attributes] | ||
| 3 | <% attrs = inspect_model.attributes -%> | ||
| 4 | <% max = attrs.keys.max { |a,b| a.length <=> b.length } -%> | ||
| 5 | <% attrs.keys.sort.each do |attr| -%> | ||
| 6 | * <%= "%*-s: %s" % [max.length, attr, object_to_yaml(attrs[attr]).gsub(/\n/, "\n ").strip] %> | ||
| 7 | <% end -%> | ||
| 8 | <% end -%> | ||
| 9 | |||
| 10 | <% if show_instance_variables -%> | ||
| 11 | [instance variables] | ||
| 12 | <% inspect_model.instance_variables.sort.each do |variable| -%> | ||
| 13 | <%- next if variable == "@attributes" -%> | ||
| 14 | * <%= variable %>: <%= inspect_value(inspect_model.instance_variable_get(variable)) %> | ||
| 15 | <% end -%> | ||
| 16 | <% end -%> | ||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml new file mode 100644 index 0000000..2542309 --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | * URL : <%= @request.protocol %><%= @host %><%= @request.request_uri %> | ||
| 2 | * IP address: <%= @request.env["HTTP_X_FORWARDED_FOR"] || @request.env["REMOTE_ADDR"] %> | ||
| 3 | * Parameters: <%= filter_sensitive_post_data_parameters(@request.parameters).inspect %> | ||
| 4 | * Rails root: <%= @rails_root %> | ||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml new file mode 100644 index 0000000..283c862 --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | * session id: <%= @request.session.instance_variable_get(:@session_id).inspect %> | ||
| 2 | * data: <%= PP.pp(@request.session.instance_variable_get(:@data),"").gsub(/\n/, "\n ").strip %> | ||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml new file mode 100644 index 0000000..1ed5a3f --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | ------------------------------- | ||
| 2 | <%= title.to_s.humanize %>: | ||
| 3 | ------------------------------- | ||
diff --git a/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml b/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml new file mode 100644 index 0000000..ec30c4a --- /dev/null +++ b/vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>: | ||
| 2 | |||
| 3 | <%= @exception.message %> | ||
| 4 | <%= @backtrace.first %> | ||
| 5 | |||
| 6 | <%= @sections.map { |section| render_section(section) }.join %> | ||
