summaryrefslogtreecommitdiff
path: root/app/models/game_setting.rb
blob: e701cae2549cc2f9ab29cb04ed52909dcd1a4c3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class GameSetting < ActiveRecord::Base
	belongs_to :game

	alias_attribute :value, :default

	def self.types
		return {
			:text_short => 0,
			:text_long => 1,
			:pick_one_radio => 2,
			:pick_several => 3,
			:true_false => 4,
			:pick_one_dropdown => 5,
		}
	end
end