summaryrefslogtreecommitdiff
path: root/app/models/remote_username.rb
blob: c2c3d2015f4d29b06b8af5e51d2b980806180d9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class RemoteUsername < ActiveRecord::Base
	belongs_to :game
	belongs_to :user

	def value
		JSON.parse(self.json_value)
	end

	def value=(v)
		self.json_value = v.to_json
	end
end