app/mailers/error_report_mailer.rb in softwear-lib-2.0.6 vs app/mailers/error_report_mailer.rb in softwear-lib-2.0.7
- old
+ new
@@ -20,22 +20,23 @@
full_name: "(Customer) #{@order.full_name}"
)
end
end
- if @user.nil?
- @user = OpenStruct.new(
- email: 'unknown-user@annarbortees.com',
- full_name: 'Unknown Customer'
- )
- end
-
- @error_class = params[:error_class]
- @error_message = params[:error_message]
- @backtrace = params[:backtrace]
- @user_message = params[:user_message]
- @additional_info = params[:additional_info]
end
+
+ if @user.nil?
+ @user = OpenStruct.new(
+ email: 'unknown-user@annarbortees.com',
+ full_name: 'Unknown Customer'
+ )
+ end
+
+ @error_class = params[:error_class]
+ @error_message = params[:error_message]
+ @backtrace = params[:backtrace]
+ @user_message = params[:user_message]
+ @additional_info = params[:additional_info]
mail(
from: from_customer ? 'customer-report@softwearcrm.com' : @user.email,
reply_to: @user.email,
to: 'devteam@annarbortees.com',