Update issues_show_hook_listener.rb

Updating to the following conventions
https://github.com/bbatsov/ruby-style-guide
This commit is contained in:
2016-01-21 12:13:00 -05:00
parent 5e635f9e2b
commit aa3fefd628

View File

@@ -21,14 +21,10 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
issue = context[:issue] issue = context[:issue]
# Check to see if there is a quickbooks user attached to the issue # Check to see if there is a quickbooks user attached to the issue
unless issue.qbo_customer.nil? @customer = issue.qbo_customer.name unless issue.qbo_customer.nil?
@customer = issue.qbo_customer.name
end
# Check to see if there is a quickbooks item attached to the issue # Check to see if there is a quickbooks item attached to the issue
unless issue.qbo_item.nil? @item = issue.qbo_item.name unless issue.qbo_item.nil?
@item = issue.qbo_item.name
end
# Estimate Number # Estimate Number
unless (issue.qbo_estimate.nil?) unless (issue.qbo_estimate.nil?)