mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: ensure we never have a string when an enum is Fixnum - Take 2
This commit is contained in:
@@ -3,7 +3,7 @@ require_dependency 'enum_site_setting'
|
||||
class AutoTrackDurationSiteSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
values.any? { |v| v[:value].to_s == val.to_s }
|
||||
values.any? { |v| v[:value] == val.to_i }
|
||||
end
|
||||
|
||||
def self.values
|
||||
|
||||
Reference in New Issue
Block a user