Merge branch 'master' into feature/#17
This commit is contained in:
@@ -4,3 +4,9 @@ This plugin allows the Exception Handler Library or any other client application
|
||||
|
||||
When a new report is received, this plugin will automatically search for an existing report.
|
||||
If there is an existing report, it will be updated; if not, a new report will be filed.
|
||||
|
||||
= Installation
|
||||
|
||||
clone into your plugin folder rake yourt database with the following command:
|
||||
|
||||
rake db:migrate_plugins RAILS_ENV=production
|
||||
|
||||
@@ -52,7 +52,7 @@ class ExceptionhandlerController < ApplicationController
|
||||
issue = check_for_existing_report
|
||||
if issue != nil
|
||||
if update_report(issue)
|
||||
flash.now[:notice] = "Updated report"
|
||||
flash.now[:notice] = "Updated report: ##{issue.id}"
|
||||
end
|
||||
|
||||
else
|
||||
@@ -61,7 +61,7 @@ class ExceptionhandlerController < ApplicationController
|
||||
issue = create_new_report
|
||||
if issue.valid?
|
||||
issue.save
|
||||
flash.now[:notice] = "New report filed"
|
||||
flash.now[:notice] = "New report filed: ##{issue.id}"
|
||||
else
|
||||
flash.now[:error] = issue.errors.full_messages
|
||||
end
|
||||
|
||||
@@ -135,7 +135,6 @@ module ExceptionhandlerHelper
|
||||
when "Count"
|
||||
value.value = (value.value.to_i + 1).to_s
|
||||
end
|
||||
value.save
|
||||
end
|
||||
issue.init_journal(User.anonymous, "Issue updated")
|
||||
return issue.save
|
||||
|
||||
Reference in New Issue
Block a user