Browse Source

fix when name blank

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
c93be31121
  1. 4
      app/models/user.rb

4
app/models/user.rb

@ -24,6 +24,10 @@ class User < ActiveRecord::Base
has_many :permitted_domains, :through => :permissions, :source => :domain
def name
full_name.blank? ? email : full_name
end
def full_name
"#{first_name} #{last_name}"
end

Loading…
Cancel
Save