From 6a595ab30cee8780c80fd4517f43f9d7243f1334 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Wed, 25 May 2016 10:46:14 -0400 Subject: [PATCH] Delete CustomerBackgroundHelper.rb --- app/helpers/CustomerBackgroundHelper.rb | 29 ------------------------- 1 file changed, 29 deletions(-) delete mode 100644 app/helpers/CustomerBackgroundHelper.rb diff --git a/app/helpers/CustomerBackgroundHelper.rb b/app/helpers/CustomerBackgroundHelper.rb deleted file mode 100644 index 50155c2..0000000 --- a/app/helpers/CustomerBackgroundHelper.rb +++ /dev/null @@ -1,29 +0,0 @@ -#The MIT License (MIT) -# -#Copyright (c) 2016 rick barrette -# -#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -# -#The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -# -#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -module CustomerBackgroundHelper < BaseBackgroundHelper - - # process the results - def results (results) - customer = Customer.find_or_create_by(id: results.id) - customer.name = results.display_name - customer.id = results.id - customer.save_without_push - end - - # provide a path to handle success - def success_path (id) - customer_path(id) - end - - # provide a path to handle error - def error_path (id) - customer_path(id) - end -end