Permalink
Browse files

Adding a display name for the account model.

  • Loading branch information...
1 parent 8a55032 commit 87f7fce682e0d64f189bb72afb8f60c20fc50ccf @waratuman waratuman committed May 1, 2013
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/mls/models/account.rb
  2. +1 −1 mls.gemspec
@@ -51,6 +51,10 @@ def create
end
end
+ def display_name
+ name || email
+ end
+
def agent?
type == 'Agent'
end
View
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
s.name = "mls"
- s.version = '0.2.47'
+ s.version = '0.2.48'
s.authors = ["James R. Bracy", "Jon Bracy"]
s.email = ["james@42floors.com"]
s.homepage = "http://mls.42floors.com"

0 comments on commit 87f7fce

Please sign in to comment.