init
This commit is contained in:
3
app/models/application_record.rb
Normal file
3
app/models/application_record.rb
Normal file
@ -0,0 +1,3 @@
|
||||
class ApplicationRecord < ActiveRecord::Base
|
||||
primary_abstract_class
|
||||
end
|
0
app/models/concerns/.keep
Normal file
0
app/models/concerns/.keep
Normal file
10
app/models/game.rb
Normal file
10
app/models/game.rb
Normal file
@ -0,0 +1,10 @@
|
||||
class Game < ApplicationRecord
|
||||
def gametype_str
|
||||
case self.gametype
|
||||
when 0
|
||||
"Classic"
|
||||
else
|
||||
"Unknown"
|
||||
end
|
||||
end
|
||||
end
|
2
app/models/player.rb
Normal file
2
app/models/player.rb
Normal file
@ -0,0 +1,2 @@
|
||||
class Player < ApplicationRecord
|
||||
end
|
Reference in New Issue
Block a user