This commit is contained in:
joshua-arts
2018-05-31 22:15:18 -04:00
parent 39414e269b
commit 1bcd176285
14 changed files with 137 additions and 77 deletions

View File

@ -90,7 +90,7 @@ class User < ApplicationRecord
# Initializes a room for the user.
def initialize_main_room
self.main_room = Room.create!(user: self, name: firstname + "'s Room")
self.main_room = Room.create!(owner: self, name: firstname + "'s Room")
self.save
end
end