Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding a display name for the account model.

  • Loading branch information...
commit 87f7fce682e0d64f189bb72afb8f60c20fc50ccf 1 parent 8a55032
@waratuman waratuman authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 lib/mls/models/account.rb
  2. +1 −1  mls.gemspec
View
4 lib/mls/models/account.rb
@@ -51,6 +51,10 @@ def create
end
end
+ def display_name
+ name || email
+ end
+
def agent?
type == 'Agent'
end
View
2  mls.gemspec
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.