Initial commit of foodsoft 2
This commit is contained in:
commit
5b9a7e05df
657 changed files with 70444 additions and 0 deletions
1
vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml
vendored
Normal file
1
vendor/plugins/exception_notification/views/exception_notifier/_backtrace.rhtml
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
<%= @backtrace.join "\n" %>
|
||||
7
vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml
vendored
Normal file
7
vendor/plugins/exception_notification/views/exception_notifier/_environment.rhtml
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<% max = @request.env.keys.max { |a,b| a.length <=> b.length } -%>
|
||||
<% @request.env.keys.sort.each do |key| -%>
|
||||
* <%= "%*-s: %s" % [max.length, key, filter_sensitive_post_data_from_env(key, @request.env[key].to_s.strip)] %>
|
||||
<% end -%>
|
||||
|
||||
* Process: <%= $$ %>
|
||||
* Server : <%= `hostname -s`.chomp %>
|
||||
16
vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml
vendored
Normal file
16
vendor/plugins/exception_notification/views/exception_notifier/_inspect_model.rhtml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<% if show_attributes -%>
|
||||
[attributes]
|
||||
<% attrs = inspect_model.attributes -%>
|
||||
<% max = attrs.keys.max { |a,b| a.length <=> b.length } -%>
|
||||
<% attrs.keys.sort.each do |attr| -%>
|
||||
* <%= "%*-s: %s" % [max.length, attr, object_to_yaml(attrs[attr]).gsub(/\n/, "\n ").strip] %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
|
||||
<% if show_instance_variables -%>
|
||||
[instance variables]
|
||||
<% inspect_model.instance_variables.sort.each do |variable| -%>
|
||||
<%- next if variable == "@attributes" -%>
|
||||
* <%= variable %>: <%= inspect_value(inspect_model.instance_variable_get(variable)) %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
3
vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml
vendored
Normal file
3
vendor/plugins/exception_notification/views/exception_notifier/_request.rhtml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
* URL: <%= @request.protocol %><%= @host %><%= @request.request_uri %>
|
||||
* Parameters: <%= filter_sensitive_post_data_parameters(@request.parameters).inspect %>
|
||||
* Rails root: <%= @rails_root %>
|
||||
2
vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml
vendored
Normal file
2
vendor/plugins/exception_notification/views/exception_notifier/_session.rhtml
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
* session id: <%= @request.session.instance_variable_get(:@session_id).inspect %>
|
||||
* data: <%= PP.pp(@request.session.instance_variable_get(:@data),"").gsub(/\n/, "\n ").strip %>
|
||||
3
vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml
vendored
Normal file
3
vendor/plugins/exception_notification/views/exception_notifier/_title.rhtml
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
-------------------------------
|
||||
<%= title.to_s.humanize %>:
|
||||
-------------------------------
|
||||
6
vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml
vendored
Normal file
6
vendor/plugins/exception_notification/views/exception_notifier/exception_notification.rhtml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
A <%= @exception.class %> occurred in <%= @controller.controller_name %>#<%= @controller.action_name %>:
|
||||
|
||||
<%= @exception.message %>
|
||||
<%= @backtrace.first %>
|
||||
|
||||
<%= @sections.map { |section| render_section(section) }.join %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue