From 19dd2d7249c47233c7fc5626d54b0f50dfcb8501 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 15 Aug 2018 17:09:28 -0500 Subject: [PATCH] remove unneeded method in Supporter --- app/models/supporter.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/models/supporter.rb b/app/models/supporter.rb index 3fef7052..9ac52ac0 100644 --- a/app/models/supporter.rb +++ b/app/models/supporter.rb @@ -64,13 +64,6 @@ class Supporter < ActiveRecord::Base end end - def self.find_by_columns(data, bool='and') - bool = options[:boolean] == 'and' ? 'AND' : 'OR' - query_cols = options[:merge_with].reduce({}){|result, sym| result.merge({sym => h[sym]})} - existing = np.supporters.where(query_cols) - end - - # params = {:id, :nonprofit_id, :name, :email} def self.fetch_with_params(np, h) if h[:id].present?