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:
parent
3b45cd0fcb
commit
97e4f7f6d3
22 changed files with 400 additions and 89 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue