Remove additional unused methods

This commit is contained in:
Eric Schultz 2018-08-16 10:55:33 -05:00
parent 19dd2d7249
commit 1618498d3e

View file

@ -64,16 +64,6 @@ class Supporter < ActiveRecord::Base
end
end
# params = {:id, :nonprofit_id, :name, :email}
def self.fetch_with_params(np, h)
if h[:id].present?
return np.supporters.find_by_id(h[:id])
else
return np.supporters.where(name: h[:name], email: h[:email]).first
end
end
def profile_picture size=:normal
return unless self.profile
self.profile.get_profile_picture(size)