remove unneeded method in Supporter
This commit is contained in:
parent
f986614613
commit
19dd2d7249
1 changed files with 0 additions and 7 deletions
|
@ -64,13 +64,6 @@ class Supporter < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
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}
|
# params = {:id, :nonprofit_id, :name, :email}
|
||||||
def self.fetch_with_params(np, h)
|
def self.fetch_with_params(np, h)
|
||||||
if h[:id].present?
|
if h[:id].present?
|
||||||
|
|
Loading…
Reference in a new issue