Sha256: a4afb36f04a17f83d9c2849f09c311f0b737519a37b26224a323ee51776e1b37
Contents?: true
Size: 219 Bytes
Versions: 78
Compression:
Stored size: 219 Bytes
Contents
require 'active_record' class Player < ActiveRecord::Base belongs_to :user validates_presence_of :name, :gold, :user def to_hash { name: name, gold: gold, userId: user_id, } end end
Version data entries
78 entries across 74 versions & 1 rubygems