summaryrefslogtreecommitdiff
path: root/users/app/models/email.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-01-17 17:35:39 +0100
committerAzul <azul@leap.se>2013-01-18 07:50:40 +0100
commitb348f9dbf3b8298e0e76bda6a9da973da25ed9bd (patch)
treed4481ebc868bb1169ba40f7bf9f21d984e3e0560 /users/app/models/email.rb
parent168c36b578d675c99aad62a350aa68cc1b6d1316 (diff)
more flexible email partial
Diffstat (limited to 'users/app/models/email.rb')
-rw-r--r--users/app/models/email.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/app/models/email.rb b/users/app/models/email.rb
index 904acb9..6d82f2a 100644
--- a/users/app/models/email.rb
+++ b/users/app/models/email.rb
@@ -22,7 +22,12 @@ module Email
other.is_a?(Email) ? self.email == other.email : self.email == other
end
+ def to_partial_path
+ "emails/email"
+ end
+
def to_param
email
end
+
end