Class: SpudUser
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- SpudUser
- Defined in:
- app/models/spud_user.rb
Instance Method Summary collapse
-
#full_name ⇒ Object
block optional.
Instance Method Details
#full_name ⇒ Object
block optional
10 11 12 13 14 15 |
# File 'app/models/spud_user.rb', line 10 def full_name if first_name.blank? && last_name.blank? return self.login end return "#{self.first_name} #{self.last_name}" end |