Class: Member

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/member.rb

Instance Method Summary collapse

Instance Method Details

#update_profile(attrs = {}) ⇒ Object



7
8
9
10
11
# File 'app/models/member.rb', line 7

def update_profile(attrs={})
  attrs.delete(:password)  if attrs[:password].empty?
  attrs.delete(:password_confirmation) if attrs[:password_confirmation].empty?
  update_attributes(attrs)
end