lib/mls/models/account.rb in mls-0.2.47 vs lib/mls/models/account.rb in mls-0.2.48
- old
+ new
@@ -49,9 +49,13 @@
@persisted = true
code == 201
end
end
+ def display_name
+ name || email
+ end
+
def agent?
type == 'Agent'
end
def favorites