2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

Enums that are used in tables need to be stable

This commit is contained in:
Arpit Jalan 2016-01-08 16:23:52 +05:30
parent 3b45cd0fcb
commit 97e4f7f6d3
22 changed files with 400 additions and 89 deletions

View file

@ -21,18 +21,18 @@ module SiteSettingExtension
end
def types
@types ||= Enum.new(:string,
:time,
:fixnum,
:float,
:bool,
:null,
:enum,
:list,
:url_list,
:host_list,
:category_list,
:value_list)
@types ||= Enum.new(string: 1,
time: 2,
fixnum: 3,
float: 4,
bool: 5,
null: 6,
enum: 7,
list: 8,
url_list: 9,
host_list: 10,
category_list: 11,
value_list: 12)
end
def mutex