localize app

This commit is contained in:
Zachary Chai
2016-11-03 17:23:00 -04:00
parent 84fb5c617f
commit bea502a5a2
12 changed files with 91 additions and 65 deletions

View File

@ -19,14 +19,6 @@ class User < ApplicationRecord
auth_hash['info']['nickname']
end
def ownership_name
if username.end_with? 's'
"#{username}'"
else
"#{username}'s"
end
end
def room_url
"/rooms/#{username}"
end