summaryrefslogtreecommitdiff
path: root/app/models/remote_username.rb
blob: e5d0a8ce76f94d515984c6a59a06c1f755724d81 (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