Skip to content

Commit

Permalink
Removed get_email from the model user. It was unused and untested.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleady committed Oct 22, 2016
1 parent 1c36ddf commit ec1a222
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,4 @@ class User < ApplicationRecord
validates :password, presence: true
validates :email, uniqueness: :email

def self.get_email(input_id)
if input_id
user = User.find(input_id)
user.respond_to?('email') ? user.email : ''
else
''
end
end
end

0 comments on commit ec1a222

Please sign in to comment.