webroar 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +7 -0
- data/README +1 -1
- data/doc/user-guide.html +125 -85
- data/doc/user-guide.txt +2 -2
- data/lib/constant.rb +23 -16
- data/lib/db_connect.rb +2 -3
- data/lib/installer.rb +17 -10
- data/lib/user_interaction.rb +21 -10
- data/lib/webroar_command.rb +21 -23
- data/src/admin_panel/Gemfile +8 -0
- data/src/admin_panel/Rakefile +2 -5
- data/src/admin_panel/app/controllers/application_controller.rb +1 -1
- data/src/admin_panel/app/controllers/exceptions_controller.rb +25 -26
- data/src/admin_panel/app/controllers/graph_controller.rb +2 -1
- data/src/admin_panel/app/helpers/admin_helper.rb +1 -1
- data/src/admin_panel/app/{models → mailers}/mailer.rb +5 -8
- data/src/admin_panel/app/models/app.rb +1 -1
- data/src/admin_panel/app/models/app_exception.rb +15 -11
- data/src/admin_panel/app/models/app_time_sample.rb +40 -10
- data/src/admin_panel/app/models/application_specification.rb +71 -41
- data/src/admin_panel/app/models/resource_usage.rb +76 -55
- data/src/admin_panel/app/models/url_breakup_time_sample.rb +6 -11
- data/src/admin_panel/app/models/url_time_sample.rb +57 -13
- data/src/admin_panel/app/views/admin/_application_table.html.erb +5 -5
- data/src/admin_panel/app/views/admin/_feedback_partial.html.erb +4 -4
- data/src/admin_panel/app/views/admin/_report_bug_partial.html.erb +5 -5
- data/src/admin_panel/app/views/admin/change_password_form.html.erb +3 -3
- data/src/admin_panel/app/views/admin/configuration.html.erb +6 -6
- data/src/admin_panel/app/views/admin/home.html.erb +4 -4
- data/src/admin_panel/app/views/admin/index.html.erb +5 -5
- data/src/admin_panel/app/views/application_specification/_application_specification_form.html.erb +15 -6
- data/src/admin_panel/app/views/exceptions/_add_and_list_exception_classes.html.erb +7 -6
- data/src/admin_panel/app/views/exceptions/_exception_backtrace_partial.html.erb +1 -1
- data/src/admin_panel/app/views/exceptions/_exception_environment_partial.html.erb +30 -30
- data/src/admin_panel/app/views/exceptions/_exception_list_partial.html.erb +11 -11
- data/src/admin_panel/app/views/exceptions/_show.html.erb +8 -8
- data/src/admin_panel/app/views/exceptions/index.html.erb +0 -1
- data/src/admin_panel/app/views/graph/_get_database_data.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_app.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_resource_usage_data_server.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_throughput_data.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_get_url_data.html.erb +4 -4
- data/src/admin_panel/app/views/graph/_pie.html.erb +2 -2
- data/src/admin_panel/app/views/graph/_query_date.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_query_period.html.erb +1 -1
- data/src/admin_panel/app/views/graph/_slider_partial.html.erb +5 -4
- data/src/admin_panel/app/views/graph/index.html.erb +0 -1
- data/src/admin_panel/app/views/headers/_add_expires_text_box.html.erb +5 -5
- data/src/admin_panel/app/views/headers/_expires_by_type_form.html.erb +1 -1
- data/src/admin_panel/app/views/headers/_headers_table.html.erb +12 -12
- data/src/admin_panel/app/views/layouts/application.html.erb +71 -51
- data/src/admin_panel/app/views/mail_specification/_current_spec.html.erb +4 -4
- data/src/admin_panel/app/views/mail_specification/_sendmail_form.html.erb +3 -3
- data/src/admin_panel/app/views/mail_specification/_smtp_form.html.erb +3 -3
- data/src/admin_panel/app/views/server_specification/_add_div.html.erb +4 -4
- data/src/admin_panel/app/views/server_specification/_ssl_support_form.html.erb +3 -2
- data/src/admin_panel/config.ru +4 -0
- data/src/admin_panel/config/application.rb +46 -0
- data/src/admin_panel/config/boot.rb +4 -112
- data/src/admin_panel/config/environment.rb +4 -85
- data/src/admin_panel/config/environments/development.rb +20 -13
- data/src/admin_panel/config/environments/production.rb +44 -17
- data/src/admin_panel/config/environments/test.rb +31 -18
- data/src/admin_panel/config/initializers/application_constants.rb +13 -11
- data/src/admin_panel/config/initializers/secret_token.rb +7 -0
- data/src/admin_panel/config/initializers/session_store.rb +8 -0
- data/src/admin_panel/config/initializers/ssl.rb +6 -2
- data/src/admin_panel/config/routes.rb +15 -57
- data/src/admin_panel/doc/README_FOR_APP +1 -1
- data/src/admin_panel/doc/app/ActionView.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers.html +229 -0
- data/src/admin_panel/doc/app/ActionView/Helpers/AssetTagHelper.html +277 -0
- data/src/admin_panel/doc/app/AdminController.html +814 -0
- data/src/admin_panel/doc/app/AdminHelper.html +495 -0
- data/src/admin_panel/doc/app/Analytics.html +272 -0
- data/src/admin_panel/doc/app/Analytics/Database.html +401 -0
- data/src/admin_panel/doc/app/Analytics/ResourceUsage.html +683 -0
- data/src/admin_panel/doc/app/Analytics/Throughput.html +488 -0
- data/src/admin_panel/doc/app/Analytics/Url.html +484 -0
- data/src/admin_panel/doc/app/Analytics/UrlBreakup.html +537 -0
- data/src/admin_panel/doc/app/App.html +489 -0
- data/src/admin_panel/doc/app/AppException.html +710 -0
- data/src/admin_panel/doc/app/AppTimeSample.html +620 -0
- data/src/admin_panel/doc/app/ApplicationController.html +239 -0
- data/src/admin_panel/doc/app/ApplicationHelper.html +296 -0
- data/src/admin_panel/doc/app/ApplicationSpecification.html +876 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationController.html +552 -0
- data/src/admin_panel/doc/app/ApplicationSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Control.html +431 -0
- data/src/admin_panel/doc/app/ExceptionDetail.html +227 -0
- data/src/admin_panel/doc/app/ExceptionsController.html +754 -0
- data/src/admin_panel/doc/app/ExceptionsHelper.html +219 -0
- data/src/admin_panel/doc/app/GraphController.html +1101 -0
- data/src/admin_panel/doc/app/GraphHelper.html +285 -0
- data/src/admin_panel/doc/app/Headers.html +549 -0
- data/src/admin_panel/doc/app/HeadersController.html +507 -0
- data/src/admin_panel/doc/app/HeadersHelper.html +219 -0
- data/src/admin_panel/doc/app/MailSpecification.html +685 -0
- data/src/admin_panel/doc/app/MailSpecificationController.html +541 -0
- data/src/admin_panel/doc/app/MailSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/Mailer.html +589 -0
- data/src/admin_panel/doc/app/Object.html +240 -0
- data/src/admin_panel/doc/app/PseudoModel.html +354 -0
- data/src/admin_panel/doc/app/ResourceUsage.html +656 -0
- data/src/admin_panel/doc/app/SCGI.html +674 -0
- data/src/admin_panel/doc/app/ServerSpecification.html +479 -0
- data/src/admin_panel/doc/app/ServerSpecificationController.html +500 -0
- data/src/admin_panel/doc/app/ServerSpecificationHelper.html +219 -0
- data/src/admin_panel/doc/app/SignalHelper.html +287 -0
- data/src/admin_panel/doc/app/UrlBreakupTimeSample.html +287 -0
- data/src/admin_panel/doc/app/UrlTimeSample.html +986 -0
- data/src/admin_panel/doc/app/User.html +290 -0
- data/src/admin_panel/doc/app/YAMLConfig.html +247 -0
- data/src/admin_panel/doc/app/YAMLWriter.html +284 -0
- data/src/admin_panel/doc/app/app/controllers/admin_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/application_controller_rb.html +54 -0
- data/src/admin_panel/doc/app/app/controllers/application_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/exceptions_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/graph_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/headers_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/mail_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/controllers/server_specification_controller_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/admin_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/application_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/exceptions_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/graph_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/headers_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/mail_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/helpers/server_specification_helper_rb.html +52 -0
- data/src/admin_panel/doc/app/app/mailers/mailer_rb.html +56 -0
- data/src/admin_panel/doc/app/app/models/app_exception_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/app_rb.html +54 -0
- data/src/admin_panel/doc/app/app/models/app_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/application_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/exception_detail_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/headers_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/mail_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/pseudo_model_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/resource_usage_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/server_specification_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_breakup_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/url_time_sample_rb.html +52 -0
- data/src/admin_panel/doc/app/app/models/user_rb.html +52 -0
- data/src/admin_panel/doc/app/created.rid +42 -1
- data/src/admin_panel/doc/app/doc/README_FOR_APP.html +172 -0
- data/src/admin_panel/doc/app/images/brick.png +0 -0
- data/src/admin_panel/doc/app/images/brick_link.png +0 -0
- data/src/admin_panel/doc/app/images/bug.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_black.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_minus.png +0 -0
- data/src/admin_panel/doc/app/images/bullet_toggle_plus.png +0 -0
- data/src/admin_panel/doc/app/images/date.png +0 -0
- data/src/admin_panel/doc/app/images/find.png +0 -0
- data/src/admin_panel/doc/app/images/loadingAnimation.gif +0 -0
- data/src/admin_panel/doc/app/images/macFFBgHack.png +0 -0
- data/src/admin_panel/doc/app/images/package.png +0 -0
- data/src/admin_panel/doc/app/images/page_green.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_text.png +0 -0
- data/src/admin_panel/doc/app/images/page_white_width.png +0 -0
- data/src/admin_panel/doc/app/images/plugin.png +0 -0
- data/src/admin_panel/doc/app/images/ruby.png +0 -0
- data/src/admin_panel/doc/app/images/tag_green.png +0 -0
- data/src/admin_panel/doc/app/images/wrench.png +0 -0
- data/src/admin_panel/doc/app/images/wrench_orange.png +0 -0
- data/src/admin_panel/doc/app/images/zoom.png +0 -0
- data/src/admin_panel/doc/app/index.html +564 -20
- data/src/admin_panel/doc/app/js/darkfish.js +116 -0
- data/src/admin_panel/doc/app/js/jquery.js +32 -0
- data/src/admin_panel/doc/app/js/quicksearch.js +114 -0
- data/src/admin_panel/doc/app/js/thickbox-compressed.js +10 -0
- data/src/admin_panel/doc/app/lib/asset_tag_helper_ext_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/control_rb.html +58 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/database_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/resource_usage_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/throughput_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/graph_controller_extensions/url_breakup_analytics_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/helper_rb.html +52 -0
- data/src/admin_panel/doc/app/lib/scgi_rb.html +54 -0
- data/src/admin_panel/doc/app/lib/yaml_writer_rb.html +52 -0
- data/src/admin_panel/doc/app/rdoc.css +763 -0
- data/src/admin_panel/lib/helper.rb +6 -2
- data/src/admin_panel/public/stylesheets/other/login.css +8 -4
- data/src/admin_panel/public/stylesheets/other/style.css +21 -17
- data/src/admin_panel/script/rails +6 -0
- data/src/admin_panel/test/test_helper.rb +2 -2
- data/src/admin_panel/vendor/plugins/calendar_date_select/History.txt +281 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/MIT-LICENSE +20 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Manifest.txt +42 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/README.txt +17 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/Rakefile +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/VERSION +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/calendar_date_select.gemspec +95 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/cds_test.html +376 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/functional/format_iso_date_test.html +52 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/prototype.js +4184 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/test.css +40 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unit/cds_helper_methods.html +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/js_test/unittest.js +564 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select.rb +33 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/calendar_date_select.rb +122 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/form_helpers.rb +237 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/lib/calendar_date_select/includes_helper.rb +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/blank_iframe.html +2 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/images/calendar_date_select/calendar.gif +0 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/calendar_date_select.js +459 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_american.js +35 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_danish.js +31 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_db.js +27 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_euro_24hr_ymd.js +7 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_finnish.js +32 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_hyphen_ampm.js +37 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_iso_date.js +29 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/format_italian.js +24 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ar.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/cs.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/da.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/de.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/es.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fi.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/fr.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/hu.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/it.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ja.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/nl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/pt.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/ru.js +10 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sl.js +11 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/javascripts/calendar_date_select/locale/sv.js +9 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/blue.css +130 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/default.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/green.css +142 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/plain.css +128 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/red.css +135 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/public/stylesheets/calendar_date_select/silver.css +133 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/calendar_date_select_spec.rb +14 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/form_helpers_spec.rb +189 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/calendar_date_select/includes_helper_spec.rb +46 -0
- data/src/admin_panel/vendor/plugins/calendar_date_select/spec/spec_helper.rb +26 -0
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/install.rb +2 -2
- data/src/admin_panel/vendor/plugins/open_flash_chart_2_plugin/uninstall.rb +2 -2
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/README.markdown +13 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/init.rb +1 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/lib/prototype_legacy_helper.rb +432 -0
- data/src/admin_panel/vendor/plugins/prototype_legacy_helper/test/test_prototype_helper.rb +297 -0
- data/src/helper/wr_config.c +1 -1
- data/src/ruby_lib/analyzer/message_analyzer.rb +1 -0
- data/src/ruby_lib/analyzer/webroar_analyzer.rb +2 -2
- data/src/ruby_lib/profiler/message_dispatcher.rb +1 -1
- data/src/ruby_lib/ruby_interface/version.rb +2 -2
- data/src/ruby_lib/webroar_app_loader.rb +1 -1
- data/tasks/gem.rake +5 -7
- data/tasks/test.rake +1 -0
- data/test/spec/analytics_spec.rb +25 -24
- data/test/spec/test_app/README +142 -129
- data/test/spec/test_app/Rakefile +2 -5
- data/test/spec/test_app/app/controllers/application_controller.rb +3 -8
- data/test/spec/test_app/app/controllers/test_controller.rb +3 -3
- data/test/spec/test_app/app/controllers/users_controller.rb +8 -8
- data/test/spec/test_app/app/helpers/application_helper.rb +2 -1
- data/test/spec/test_app/app/helpers/test_helper.rb +2 -0
- data/test/spec/test_app/app/helpers/users_helper.rb +2 -0
- data/test/spec/test_app/app/models/user.rb +2 -0
- data/test/spec/test_app/app/views/layouts/{users.html.erb → application.html.erb} +6 -9
- data/test/spec/test_app/app/views/test/post_data.html.erb +2 -2
- data/test/spec/test_app/app/views/test/upload_file.html.erb +1 -1
- data/test/spec/test_app/{db/migrate/20090602102438_create_users.rb → app/views/users/_form.html.erb} +22 -11
- data/test/spec/test_app/app/views/users/edit.html.erb +19 -28
- data/test/spec/test_app/app/views/users/index.html.erb +23 -19
- data/test/spec/test_app/app/views/users/new.html.erb +19 -28
- data/test/spec/test_app/app/views/users/show.html.erb +21 -18
- data/test/spec/test_app/config/application.rb +45 -0
- data/test/spec/test_app/config/boot.rb +4 -112
- data/test/spec/test_app/config/database.yml +1 -1
- data/test/spec/test_app/config/environment.rb +4 -41
- data/test/spec/test_app/config/environments/development.rb +22 -13
- data/test/spec/test_app/config/environments/production.rb +41 -20
- data/test/spec/test_app/config/environments/test.rb +35 -28
- data/test/spec/test_app/config/initializers/backtrace_silencers.rb +2 -2
- data/test/spec/test_app/config/initializers/inflections.rb +1 -1
- data/test/spec/test_app/config/initializers/secret_token.rb +7 -0
- data/test/spec/test_app/config/initializers/session_store.rb +3 -10
- data/test/spec/test_app/config/locales/en.yml +5 -0
- data/test/spec/test_app/config/routes.rb +37 -22
- data/test/spec/test_app/db/migrate/20110906113329_create_users.rb +13 -0
- data/test/spec/test_app/db/seeds.rb +7 -0
- data/test/spec/test_app/public/404.html +15 -19
- data/test/spec/test_app/public/422.html +15 -19
- data/test/spec/test_app/public/500.html +14 -18
- data/test/spec/test_app/public/index.html +41 -77
- data/test/spec/test_app/public/javascripts/controls.js +5 -3
- data/test/spec/test_app/public/javascripts/dragdrop.js +7 -6
- data/test/spec/test_app/public/javascripts/effects.js +8 -13
- data/test/spec/test_app/public/javascripts/prototype.js +3381 -1700
- data/test/spec/test_app/public/javascripts/rails.js +191 -0
- data/test/spec/test_app/public/stylesheets/scaffold.css +15 -13
- data/test/spec/test_app/script/rails +6 -0
- metadata +340 -163
- data/src/admin_panel/Gemfile.lock +0 -79
- data/src/admin_panel/doc/app/classes/ActionView.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers.html +0 -111
- data/src/admin_panel/doc/app/classes/ActionView/Helpers/AssetTagHelper.html +0 -149
- data/src/admin_panel/doc/app/classes/AdminController.html +0 -628
- data/src/admin_panel/doc/app/classes/AdminHelper.html +0 -482
- data/src/admin_panel/doc/app/classes/Analytics.html +0 -138
- data/src/admin_panel/doc/app/classes/Analytics/Database.html +0 -245
- data/src/admin_panel/doc/app/classes/Analytics/ResourceUsage.html +0 -478
- data/src/admin_panel/doc/app/classes/Analytics/Throughput.html +0 -316
- data/src/admin_panel/doc/app/classes/Analytics/Url.html +0 -314
- data/src/admin_panel/doc/app/classes/Analytics/UrlBreakup.html +0 -372
- data/src/admin_panel/doc/app/classes/App.html +0 -298
- data/src/admin_panel/doc/app/classes/AppException.html +0 -330
- data/src/admin_panel/doc/app/classes/AppTimeSample.html +0 -427
- data/src/admin_panel/doc/app/classes/ApplicationController.html +0 -118
- data/src/admin_panel/doc/app/classes/ApplicationHelper.html +0 -172
- data/src/admin_panel/doc/app/classes/ApplicationSpecification.html +0 -641
- data/src/admin_panel/doc/app/classes/ApplicationSpecificationController.html +0 -354
- data/src/admin_panel/doc/app/classes/Control.html +0 -273
- data/src/admin_panel/doc/app/classes/ExceptionsController.html +0 -612
- data/src/admin_panel/doc/app/classes/ExceptionsHelper.html +0 -105
- data/src/admin_panel/doc/app/classes/GraphController.html +0 -804
- data/src/admin_panel/doc/app/classes/GraphHelper.html +0 -164
- data/src/admin_panel/doc/app/classes/MailSpecification.html +0 -357
- data/src/admin_panel/doc/app/classes/MailSpecificationController.html +0 -304
- data/src/admin_panel/doc/app/classes/PseudoModel.html +0 -206
- data/src/admin_panel/doc/app/classes/ResourceUsage.html +0 -425
- data/src/admin_panel/doc/app/classes/SCGI.html +0 -406
- data/src/admin_panel/doc/app/classes/ServerSpecification.html +0 -325
- data/src/admin_panel/doc/app/classes/ServerSpecificationController.html +0 -273
- data/src/admin_panel/doc/app/classes/UrlBreakupTimeSample.html +0 -169
- data/src/admin_panel/doc/app/classes/UrlTimeSample.html +0 -708
- data/src/admin_panel/doc/app/classes/User.html +0 -165
- data/src/admin_panel/doc/app/classes/YAMLWriter.html +0 -159
- data/src/admin_panel/doc/app/files/app/controllers/admin_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/application_controller_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/controllers/application_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/exceptions_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/graph_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/mail_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/controllers/server_specification_controller_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/admin_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/application_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/exceptions_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/helpers/graph_helper_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_exception_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/app_rb.html +0 -108
- data/src/admin_panel/doc/app/files/app/models/app_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/application_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/mail_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/pseudo_model_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/resource_usage_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/server_specification_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_breakup_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/url_time_sample_rb.html +0 -101
- data/src/admin_panel/doc/app/files/app/models/user_rb.html +0 -101
- data/src/admin_panel/doc/app/files/doc/README_FOR_APP.html +0 -109
- data/src/admin_panel/doc/app/files/lib/asset_tag_helper_ext_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/control_rb.html +0 -110
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/database_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/resource_usage_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/throughput_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/graph_controller_extensions/url_breakup_analytics_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/scgi_rb.html +0 -101
- data/src/admin_panel/doc/app/files/lib/yaml_writer_rb.html +0 -101
- data/src/admin_panel/doc/app/fr_class_index.html +0 -60
- data/src/admin_panel/doc/app/fr_file_index.html +0 -58
- data/src/admin_panel/doc/app/fr_method_index.html +0 -206
- data/src/admin_panel/doc/app/rdoc-style.css +0 -208
- data/src/admin_panel/public/dispatch.cgi +0 -10
- data/src/admin_panel/public/dispatch.fcgi +0 -24
- data/src/admin_panel/public/dispatch.rb +0 -10
- data/src/admin_panel/script/about +0 -4
- data/src/admin_panel/script/console +0 -3
- data/src/admin_panel/script/dbconsole +0 -3
- data/src/admin_panel/script/destroy +0 -3
- data/src/admin_panel/script/generate +0 -3
- data/src/admin_panel/script/performance/benchmarker +0 -3
- data/src/admin_panel/script/performance/profiler +0 -3
- data/src/admin_panel/script/performance/request +0 -3
- data/src/admin_panel/script/plugin +0 -3
- data/src/admin_panel/script/process/inspector +0 -3
- data/src/admin_panel/script/process/reaper +0 -3
- data/src/admin_panel/script/process/spawner +0 -3
- data/src/admin_panel/script/runner +0 -3
- data/src/admin_panel/script/server +0 -3
- data/test/spec/test_app/config/initializers/new_rails_defaults.rb +0 -19
- data/test/spec/test_app/script/about +0 -4
- data/test/spec/test_app/script/console +0 -3
- data/test/spec/test_app/script/dbconsole +0 -3
- data/test/spec/test_app/script/destroy +0 -3
- data/test/spec/test_app/script/generate +0 -3
- data/test/spec/test_app/script/performance/benchmarker +0 -3
- data/test/spec/test_app/script/performance/profiler +0 -3
- data/test/spec/test_app/script/plugin +0 -3
- data/test/spec/test_app/script/runner +0 -3
- data/test/spec/test_app/script/server +0 -3
- data/test/spec/test_app/vendor/.placeholder +0 -0
@@ -1,612 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: ExceptionsController</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">ExceptionsController</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../files/app/controllers/exceptions_controller_rb.html">
|
59
|
-
app/controllers/exceptions_controller.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
<a href="ApplicationController.html">
|
69
|
-
ApplicationController
|
70
|
-
</a>
|
71
|
-
</td>
|
72
|
-
</tr>
|
73
|
-
</table>
|
74
|
-
</div>
|
75
|
-
<!-- banner header -->
|
76
|
-
|
77
|
-
<div id="bodyContent">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div id="contextContent">
|
82
|
-
|
83
|
-
<div id="description">
|
84
|
-
<p>
|
85
|
-
Controller class is used to handle all the views for exception handling
|
86
|
-
feature.
|
87
|
-
</p>
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
|
94
|
-
<div id="method-list">
|
95
|
-
<h3 class="section-bar">Methods</h3>
|
96
|
-
|
97
|
-
<div class="name-list">
|
98
|
-
<a href="#M000072">close_exception</a>
|
99
|
-
<a href="#M000070">closed_exceptions</a>
|
100
|
-
<a href="#M000066">get_exception</a>
|
101
|
-
<a href="#M000067">get_exceptions_list</a>
|
102
|
-
<a href="#M000073">ignore_exception</a>
|
103
|
-
<a href="#M000071">ignored_exceptions</a>
|
104
|
-
<a href="#M000063">index</a>
|
105
|
-
<a href="#M000065">list</a>
|
106
|
-
<a href="#M000068">list_statuswise_exceptions</a>
|
107
|
-
<a href="#M000069">opened_exceptions</a>
|
108
|
-
<a href="#M000074">reopen_exception</a>
|
109
|
-
<a href="#M000076">required_closed_exceptions</a>
|
110
|
-
<a href="#M000077">required_ignored_exceptions</a>
|
111
|
-
<a href="#M000075">required_open_exceptions</a>
|
112
|
-
<a href="#M000064">show</a>
|
113
|
-
</div>
|
114
|
-
</div>
|
115
|
-
|
116
|
-
</div>
|
117
|
-
|
118
|
-
|
119
|
-
<!-- if includes -->
|
120
|
-
|
121
|
-
<div id="section">
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<!-- if method_list -->
|
131
|
-
<div id="methods">
|
132
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
133
|
-
|
134
|
-
<div id="method-M000072" class="method-detail">
|
135
|
-
<a name="M000072"></a>
|
136
|
-
|
137
|
-
<div class="method-heading">
|
138
|
-
<a href="#M000072" class="method-signature">
|
139
|
-
<span class="method-name">close_exception</span><span class="method-args">()</span>
|
140
|
-
</a>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="method-description">
|
144
|
-
<p>
|
145
|
-
Method is used to set the status for an exception as closed.
|
146
|
-
</p>
|
147
|
-
<p><a class="source-toggle" href="#"
|
148
|
-
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
149
|
-
<div class="method-source-code" id="M000072-source">
|
150
|
-
<pre>
|
151
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 121</span>
|
152
|
-
121: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close_exception</span>
|
153
|
-
122: <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">update_status_to</span>(<span class="ruby-constant">CLOSED_EXCEPTION</span>, <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>], <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:exception_name</span>])
|
154
|
-
123: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'index'</span>
|
155
|
-
124: <span class="ruby-keyword kw">end</span>
|
156
|
-
</pre>
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
</div>
|
160
|
-
|
161
|
-
<div id="method-M000070" class="method-detail">
|
162
|
-
<a name="M000070"></a>
|
163
|
-
|
164
|
-
<div class="method-heading">
|
165
|
-
<a href="#M000070" class="method-signature">
|
166
|
-
<span class="method-name">closed_exceptions</span><span class="method-args">(app_name)</span>
|
167
|
-
</a>
|
168
|
-
</div>
|
169
|
-
|
170
|
-
<div class="method-description">
|
171
|
-
<p>
|
172
|
-
Method is used to <a href="ExceptionsController.html#M000065">list</a> all
|
173
|
-
closed exceptions for an application.
|
174
|
-
</p>
|
175
|
-
<p><a class="source-toggle" href="#"
|
176
|
-
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
177
|
-
<div class="method-source-code" id="M000070-source">
|
178
|
-
<pre>
|
179
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 103</span>
|
180
|
-
103: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">closed_exceptions</span>(<span class="ruby-identifier">app_name</span>)
|
181
|
-
104: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">app_name</span>).<span class="ruby-identifier">id</span>
|
182
|
-
105: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">app_name</span>
|
183
|
-
106: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_closed</span>(<span class="ruby-identifier">app_id</span>)
|
184
|
-
107: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">CLOSED_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-value">0</span>)
|
185
|
-
108: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'close_exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>}
|
186
|
-
109: <span class="ruby-keyword kw">end</span>
|
187
|
-
</pre>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div id="method-M000066" class="method-detail">
|
193
|
-
<a name="M000066"></a>
|
194
|
-
|
195
|
-
<div class="method-heading">
|
196
|
-
<a href="#M000066" class="method-signature">
|
197
|
-
<span class="method-name">get_exception</span><span class="method-args">()</span>
|
198
|
-
</a>
|
199
|
-
</div>
|
200
|
-
|
201
|
-
<div class="method-description">
|
202
|
-
<p>
|
203
|
-
This methos is used to put the exception count on the home tab of the admin
|
204
|
-
panel.
|
205
|
-
</p>
|
206
|
-
<p><a class="source-toggle" href="#"
|
207
|
-
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
208
|
-
<div class="method-source-code" id="M000066-source">
|
209
|
-
<pre>
|
210
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 65</span>
|
211
|
-
65: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_exception</span>
|
212
|
-
66: <span class="ruby-identifier">exceptions_count</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">exceptions_count</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>])
|
213
|
-
67: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">exceptions_count</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
214
|
-
68: <span class="ruby-identifier">link_text</span> = <span class="ruby-node">"Yes (#{exceptions_count})"</span>
|
215
|
-
69: <span class="ruby-identifier">exception_span_data</span> = <span class="ruby-identifier">link_text</span>
|
216
|
-
70: <span class="ruby-keyword kw">else</span>
|
217
|
-
71: <span class="ruby-identifier">exception_span_data</span> = <span class="ruby-value str">"No"</span>
|
218
|
-
72: <span class="ruby-keyword kw">end</span>
|
219
|
-
73: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'link_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:data</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">exception_span_data</span>}
|
220
|
-
74: <span class="ruby-keyword kw">end</span>
|
221
|
-
</pre>
|
222
|
-
</div>
|
223
|
-
</div>
|
224
|
-
</div>
|
225
|
-
|
226
|
-
<div id="method-M000067" class="method-detail">
|
227
|
-
<a name="M000067"></a>
|
228
|
-
|
229
|
-
<div class="method-heading">
|
230
|
-
<a href="#M000067" class="method-signature">
|
231
|
-
<span class="method-name">get_exceptions_list</span><span class="method-args">()</span>
|
232
|
-
</a>
|
233
|
-
</div>
|
234
|
-
|
235
|
-
<div class="method-description">
|
236
|
-
<p>
|
237
|
-
Method sets the application name in the in the session and redirect it to
|
238
|
-
the method <a href="ExceptionsController.html#M000063">index</a>.
|
239
|
-
</p>
|
240
|
-
<p><a class="source-toggle" href="#"
|
241
|
-
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
242
|
-
<div class="method-source-code" id="M000067-source">
|
243
|
-
<pre>
|
244
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 77</span>
|
245
|
-
77: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_exceptions_list</span>
|
246
|
-
78: <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:exceptions_application_name</span>] = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:application_name</span>]
|
247
|
-
79: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'index'</span>
|
248
|
-
80: <span class="ruby-keyword kw">end</span>
|
249
|
-
</pre>
|
250
|
-
</div>
|
251
|
-
</div>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
<div id="method-M000073" class="method-detail">
|
255
|
-
<a name="M000073"></a>
|
256
|
-
|
257
|
-
<div class="method-heading">
|
258
|
-
<a href="#M000073" class="method-signature">
|
259
|
-
<span class="method-name">ignore_exception</span><span class="method-args">()</span>
|
260
|
-
</a>
|
261
|
-
</div>
|
262
|
-
|
263
|
-
<div class="method-description">
|
264
|
-
<p>
|
265
|
-
Method is used to set the status for an exception as ignored.
|
266
|
-
</p>
|
267
|
-
<p><a class="source-toggle" href="#"
|
268
|
-
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
269
|
-
<div class="method-source-code" id="M000073-source">
|
270
|
-
<pre>
|
271
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 127</span>
|
272
|
-
127: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ignore_exception</span>
|
273
|
-
128: <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">update_status_to</span>(<span class="ruby-constant">IGNORED_EXCEPTION</span>, <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>], <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:exception_name</span>])
|
274
|
-
129: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'index'</span>
|
275
|
-
130: <span class="ruby-keyword kw">end</span>
|
276
|
-
</pre>
|
277
|
-
</div>
|
278
|
-
</div>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
<div id="method-M000071" class="method-detail">
|
282
|
-
<a name="M000071"></a>
|
283
|
-
|
284
|
-
<div class="method-heading">
|
285
|
-
<a href="#M000071" class="method-signature">
|
286
|
-
<span class="method-name">ignored_exceptions</span><span class="method-args">(app_name)</span>
|
287
|
-
</a>
|
288
|
-
</div>
|
289
|
-
|
290
|
-
<div class="method-description">
|
291
|
-
<p>
|
292
|
-
Method is used to <a href="ExceptionsController.html#M000065">list</a> all
|
293
|
-
ignored exceptions for an application.
|
294
|
-
</p>
|
295
|
-
<p><a class="source-toggle" href="#"
|
296
|
-
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
297
|
-
<div class="method-source-code" id="M000071-source">
|
298
|
-
<pre>
|
299
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 112</span>
|
300
|
-
112: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ignored_exceptions</span>(<span class="ruby-identifier">app_name</span>)
|
301
|
-
113: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">app_name</span>).<span class="ruby-identifier">id</span>
|
302
|
-
114: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">app_name</span>
|
303
|
-
115: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_ignored</span>(<span class="ruby-identifier">app_id</span>)
|
304
|
-
116: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">IGNORED_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>)
|
305
|
-
117: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'ignored_exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>}
|
306
|
-
118: <span class="ruby-keyword kw">end</span>
|
307
|
-
</pre>
|
308
|
-
</div>
|
309
|
-
</div>
|
310
|
-
</div>
|
311
|
-
|
312
|
-
<div id="method-M000063" class="method-detail">
|
313
|
-
<a name="M000063"></a>
|
314
|
-
|
315
|
-
<div class="method-heading">
|
316
|
-
<a href="#M000063" class="method-signature">
|
317
|
-
<span class="method-name">index</span><span class="method-args">()</span>
|
318
|
-
</a>
|
319
|
-
</div>
|
320
|
-
|
321
|
-
<div class="method-description">
|
322
|
-
<p>
|
323
|
-
the method is to render the <a
|
324
|
-
href="ExceptionsController.html#M000063">index</a> page of exception tab.
|
325
|
-
on this page the exception of the first application in the application
|
326
|
-
array is deiplayed.
|
327
|
-
</p>
|
328
|
-
<p><a class="source-toggle" href="#"
|
329
|
-
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
330
|
-
<div class="method-source-code" id="M000063-source">
|
331
|
-
<pre>
|
332
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 29</span>
|
333
|
-
29: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
334
|
-
30: <span class="ruby-ivar">@apps</span> = <span class="ruby-identifier">get_application_list_for_exceptions</span>
|
335
|
-
31: <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:application_name</span>] = <span class="ruby-identifier">get_application_list</span>[<span class="ruby-value">0</span>]
|
336
|
-
32: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:exceptions_application_name</span>].<span class="ruby-identifier">nil?</span>
|
337
|
-
33: <span class="ruby-identifier">app</span> = <span class="ruby-ivar">@apps</span>[<span class="ruby-value">0</span>]
|
338
|
-
34: <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:exceptions_application_name</span>] = <span class="ruby-identifier">app</span>
|
339
|
-
35: <span class="ruby-keyword kw">else</span>
|
340
|
-
36: <span class="ruby-identifier">app</span> = <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:exceptions_application_name</span>]
|
341
|
-
37: <span class="ruby-keyword kw">end</span>
|
342
|
-
38: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">app</span>
|
343
|
-
39: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">app</span>).<span class="ruby-identifier">id</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span>
|
344
|
-
40: <span class="ruby-ivar">@start</span> = <span class="ruby-value">0</span>
|
345
|
-
41: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_open</span>(<span class="ruby-identifier">app_id</span>)
|
346
|
-
42: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">OPEN_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-ivar">@start</span>)
|
347
|
-
43: <span class="ruby-keyword kw">end</span>
|
348
|
-
</pre>
|
349
|
-
</div>
|
350
|
-
</div>
|
351
|
-
</div>
|
352
|
-
|
353
|
-
<div id="method-M000065" class="method-detail">
|
354
|
-
<a name="M000065"></a>
|
355
|
-
|
356
|
-
<div class="method-heading">
|
357
|
-
<a href="#M000065" class="method-signature">
|
358
|
-
<span class="method-name">list</span><span class="method-args">()</span>
|
359
|
-
</a>
|
360
|
-
</div>
|
361
|
-
|
362
|
-
<div class="method-description">
|
363
|
-
<p>
|
364
|
-
This method is to display the <a
|
365
|
-
href="ExceptionsController.html#M000065">list</a> of exceptions as
|
366
|
-
selection made from select box.
|
367
|
-
</p>
|
368
|
-
<p><a class="source-toggle" href="#"
|
369
|
-
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
370
|
-
<div class="method-source-code" id="M000065-source">
|
371
|
-
<pre>
|
372
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 54</span>
|
373
|
-
54: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list</span>
|
374
|
-
55: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:application_name</span>]
|
375
|
-
56: <span class="ruby-identifier">session</span>[<span class="ruby-identifier">:exceptions_application_name</span>] = <span class="ruby-ivar">@application_name</span>
|
376
|
-
57: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-ivar">@application_name</span>).<span class="ruby-identifier">id</span>
|
377
|
-
58: <span class="ruby-ivar">@start</span> = <span class="ruby-value">0</span>
|
378
|
-
59: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_open</span>(<span class="ruby-identifier">app_id</span>)
|
379
|
-
60: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">OPEN_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>)
|
380
|
-
61: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'exceptions_listing_partial'</span>
|
381
|
-
62: <span class="ruby-keyword kw">end</span>
|
382
|
-
</pre>
|
383
|
-
</div>
|
384
|
-
</div>
|
385
|
-
</div>
|
386
|
-
|
387
|
-
<div id="method-M000068" class="method-detail">
|
388
|
-
<a name="M000068"></a>
|
389
|
-
|
390
|
-
<div class="method-heading">
|
391
|
-
<a href="#M000068" class="method-signature">
|
392
|
-
<span class="method-name">list_statuswise_exceptions</span><span class="method-args">()</span>
|
393
|
-
</a>
|
394
|
-
</div>
|
395
|
-
|
396
|
-
<div class="method-description">
|
397
|
-
<p>
|
398
|
-
Method is used to <a href="ExceptionsController.html#M000065">list</a> the
|
399
|
-
exceptions with different status.
|
400
|
-
</p>
|
401
|
-
<p><a class="source-toggle" href="#"
|
402
|
-
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
403
|
-
<div class="method-source-code" id="M000068-source">
|
404
|
-
<pre>
|
405
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 83</span>
|
406
|
-
83: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">list_statuswise_exceptions</span>
|
407
|
-
84: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:status_name</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'Ignored'</span>
|
408
|
-
85: <span class="ruby-identifier">ignored_exceptions</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>])
|
409
|
-
86: <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:status_name</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'Closed'</span>
|
410
|
-
87: <span class="ruby-identifier">closed_exceptions</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>])
|
411
|
-
88: <span class="ruby-keyword kw">else</span>
|
412
|
-
89: <span class="ruby-identifier">opened_exceptions</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>])
|
413
|
-
90: <span class="ruby-keyword kw">end</span>
|
414
|
-
91: <span class="ruby-keyword kw">end</span>
|
415
|
-
</pre>
|
416
|
-
</div>
|
417
|
-
</div>
|
418
|
-
</div>
|
419
|
-
|
420
|
-
<div id="method-M000069" class="method-detail">
|
421
|
-
<a name="M000069"></a>
|
422
|
-
|
423
|
-
<div class="method-heading">
|
424
|
-
<a href="#M000069" class="method-signature">
|
425
|
-
<span class="method-name">opened_exceptions</span><span class="method-args">(app_name)</span>
|
426
|
-
</a>
|
427
|
-
</div>
|
428
|
-
|
429
|
-
<div class="method-description">
|
430
|
-
<p>
|
431
|
-
Method is used to <a href="ExceptionsController.html#M000065">list</a> all
|
432
|
-
open exceptions for an application.
|
433
|
-
</p>
|
434
|
-
<p><a class="source-toggle" href="#"
|
435
|
-
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
436
|
-
<div class="method-source-code" id="M000069-source">
|
437
|
-
<pre>
|
438
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 94</span>
|
439
|
-
94: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">opened_exceptions</span>(<span class="ruby-identifier">app_name</span>)
|
440
|
-
95: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">app_name</span>).<span class="ruby-identifier">id</span>
|
441
|
-
96: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">app_name</span>
|
442
|
-
97: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_open</span>(<span class="ruby-identifier">app_id</span>)
|
443
|
-
98: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">OPEN_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-value">0</span>)
|
444
|
-
99: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>}
|
445
|
-
100: <span class="ruby-keyword kw">end</span>
|
446
|
-
</pre>
|
447
|
-
</div>
|
448
|
-
</div>
|
449
|
-
</div>
|
450
|
-
|
451
|
-
<div id="method-M000074" class="method-detail">
|
452
|
-
<a name="M000074"></a>
|
453
|
-
|
454
|
-
<div class="method-heading">
|
455
|
-
<a href="#M000074" class="method-signature">
|
456
|
-
<span class="method-name">reopen_exception</span><span class="method-args">()</span>
|
457
|
-
</a>
|
458
|
-
</div>
|
459
|
-
|
460
|
-
<div class="method-description">
|
461
|
-
<p>
|
462
|
-
Method is used to set the status for an exception as reopened.
|
463
|
-
</p>
|
464
|
-
<p><a class="source-toggle" href="#"
|
465
|
-
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
466
|
-
<div class="method-source-code" id="M000074-source">
|
467
|
-
<pre>
|
468
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 133</span>
|
469
|
-
133: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reopen_exception</span>
|
470
|
-
134: <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">update_status_to</span>(<span class="ruby-constant">OPEN_EXCEPTION</span>, <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>], <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:exception_name</span>])
|
471
|
-
135: <span class="ruby-identifier">redirect_to</span> <span class="ruby-identifier">:action</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'index'</span>
|
472
|
-
136: <span class="ruby-keyword kw">end</span>
|
473
|
-
</pre>
|
474
|
-
</div>
|
475
|
-
</div>
|
476
|
-
</div>
|
477
|
-
|
478
|
-
<div id="method-M000076" class="method-detail">
|
479
|
-
<a name="M000076"></a>
|
480
|
-
|
481
|
-
<div class="method-heading">
|
482
|
-
<a href="#M000076" class="method-signature">
|
483
|
-
<span class="method-name">required_closed_exceptions</span><span class="method-args">()</span>
|
484
|
-
</a>
|
485
|
-
</div>
|
486
|
-
|
487
|
-
<div class="method-description">
|
488
|
-
<p>
|
489
|
-
Gives the array of five closed exceptions for pagination.
|
490
|
-
</p>
|
491
|
-
<p><a class="source-toggle" href="#"
|
492
|
-
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
493
|
-
<div class="method-source-code" id="M000076-source">
|
494
|
-
<pre>
|
495
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 149</span>
|
496
|
-
149: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">required_closed_exceptions</span>
|
497
|
-
150: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]).<span class="ruby-identifier">id</span>
|
498
|
-
151: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]
|
499
|
-
152: <span class="ruby-ivar">@start</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:start</span>].<span class="ruby-identifier">to_i</span>
|
500
|
-
153: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_closed</span>(<span class="ruby-identifier">app_id</span>)
|
501
|
-
154: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">CLOSED_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-ivar">@start</span>)
|
502
|
-
155: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'close_exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@start</span>}
|
503
|
-
156: <span class="ruby-keyword kw">end</span>
|
504
|
-
</pre>
|
505
|
-
</div>
|
506
|
-
</div>
|
507
|
-
</div>
|
508
|
-
|
509
|
-
<div id="method-M000077" class="method-detail">
|
510
|
-
<a name="M000077"></a>
|
511
|
-
|
512
|
-
<div class="method-heading">
|
513
|
-
<a href="#M000077" class="method-signature">
|
514
|
-
<span class="method-name">required_ignored_exceptions</span><span class="method-args">()</span>
|
515
|
-
</a>
|
516
|
-
</div>
|
517
|
-
|
518
|
-
<div class="method-description">
|
519
|
-
<p>
|
520
|
-
Gives the array of five ignored exceptions for pagination.
|
521
|
-
</p>
|
522
|
-
<p><a class="source-toggle" href="#"
|
523
|
-
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
524
|
-
<div class="method-source-code" id="M000077-source">
|
525
|
-
<pre>
|
526
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 159</span>
|
527
|
-
159: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">required_ignored_exceptions</span>
|
528
|
-
160: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]).<span class="ruby-identifier">id</span>
|
529
|
-
161: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]
|
530
|
-
162: <span class="ruby-ivar">@start</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:start</span>].<span class="ruby-identifier">to_i</span>
|
531
|
-
163: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_ignored</span>(<span class="ruby-identifier">app_id</span>)
|
532
|
-
164: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">IGNORED_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-ivar">@start</span>)
|
533
|
-
165: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'ignored_exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@start</span>}
|
534
|
-
166: <span class="ruby-keyword kw">end</span>
|
535
|
-
</pre>
|
536
|
-
</div>
|
537
|
-
</div>
|
538
|
-
</div>
|
539
|
-
|
540
|
-
<div id="method-M000075" class="method-detail">
|
541
|
-
<a name="M000075"></a>
|
542
|
-
|
543
|
-
<div class="method-heading">
|
544
|
-
<a href="#M000075" class="method-signature">
|
545
|
-
<span class="method-name">required_open_exceptions</span><span class="method-args">()</span>
|
546
|
-
</a>
|
547
|
-
</div>
|
548
|
-
|
549
|
-
<div class="method-description">
|
550
|
-
<p>
|
551
|
-
Gives the array of five open exceptions for pagination.
|
552
|
-
</p>
|
553
|
-
<p><a class="source-toggle" href="#"
|
554
|
-
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
555
|
-
<div class="method-source-code" id="M000075-source">
|
556
|
-
<pre>
|
557
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 139</span>
|
558
|
-
139: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">required_open_exceptions</span>
|
559
|
-
140: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]).<span class="ruby-identifier">id</span>
|
560
|
-
141: <span class="ruby-ivar">@application_name</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:app_name</span>]
|
561
|
-
142: <span class="ruby-ivar">@start</span> = <span class="ruby-identifier">params</span>[<span class="ruby-identifier">:start</span>].<span class="ruby-identifier">to_i</span>
|
562
|
-
143: <span class="ruby-ivar">@size</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">count_open</span>(<span class="ruby-identifier">app_id</span>)
|
563
|
-
144: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_all</span>(<span class="ruby-constant">OPEN_EXCEPTION</span>, <span class="ruby-identifier">app_id</span>, <span class="ruby-ivar">@start</span>)
|
564
|
-
145: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'exception_list_partial'</span>, <span class="ruby-identifier">:locals</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@start</span>}
|
565
|
-
146: <span class="ruby-keyword kw">end</span>
|
566
|
-
</pre>
|
567
|
-
</div>
|
568
|
-
</div>
|
569
|
-
</div>
|
570
|
-
|
571
|
-
<div id="method-M000064" class="method-detail">
|
572
|
-
<a name="M000064"></a>
|
573
|
-
|
574
|
-
<div class="method-heading">
|
575
|
-
<a href="#M000064" class="method-signature">
|
576
|
-
<span class="method-name">show</span><span class="method-args">()</span>
|
577
|
-
</a>
|
578
|
-
</div>
|
579
|
-
|
580
|
-
<div class="method-description">
|
581
|
-
<p>
|
582
|
-
This method is to display the information of the specific exception.
|
583
|
-
</p>
|
584
|
-
<p><a class="source-toggle" href="#"
|
585
|
-
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
586
|
-
<div class="method-source-code" id="M000064-source">
|
587
|
-
<pre>
|
588
|
-
<span class="ruby-comment cmt"># File app/controllers/exceptions_controller.rb, line 46</span>
|
589
|
-
46: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">show</span>
|
590
|
-
47: <span class="ruby-identifier">app_id</span> = <span class="ruby-constant">App</span>.<span class="ruby-identifier">get_application_data</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:application_name</span>]).<span class="ruby-identifier">id</span>
|
591
|
-
48: <span class="ruby-ivar">@excep</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_exception_details_by_id</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:id</span>])
|
592
|
-
49: <span class="ruby-ivar">@exceptions</span> = <span class="ruby-constant">AppException</span>.<span class="ruby-identifier">get_exception_details_by_exception_message</span>(<span class="ruby-ivar">@excep</span>.<span class="ruby-identifier">exception_message</span>, <span class="ruby-identifier">app_id</span>)
|
593
|
-
50: <span class="ruby-identifier">render</span> <span class="ruby-identifier">:partial</span> =<span class="ruby-operator">></span> <span class="ruby-value str">'show'</span>
|
594
|
-
51: <span class="ruby-keyword kw">end</span>
|
595
|
-
</pre>
|
596
|
-
</div>
|
597
|
-
</div>
|
598
|
-
</div>
|
599
|
-
|
600
|
-
|
601
|
-
</div>
|
602
|
-
|
603
|
-
|
604
|
-
</div>
|
605
|
-
|
606
|
-
|
607
|
-
<div id="validator-badges">
|
608
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
609
|
-
</div>
|
610
|
-
|
611
|
-
</body>
|
612
|
-
</html>
|