mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
fix the build
This commit is contained in:
parent
b9a9a91335
commit
2c06db67a9
@ -3,6 +3,7 @@ require_dependency 'enum_site_setting'
|
||||
class AutoTrackDurationSiteSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
val.to_i.to_s == val.to_s &&
|
||||
values.any? { |v| v[:value] == val.to_i }
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,7 @@ require_dependency 'enum_site_setting'
|
||||
class DigestEmailSiteSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
val.to_i.to_s == val.to_s &&
|
||||
values.any? { |v| v[:value] == val.to_i }
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,7 @@ require_dependency 'enum_site_setting'
|
||||
class NewTopicDurationSiteSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
val.to_i.to_s == val.to_s &&
|
||||
values.any? { |v| v[:value] == val.to_i }
|
||||
end
|
||||
|
||||
|
@ -3,6 +3,7 @@ require_dependency 'enum_site_setting'
|
||||
class TrustLevelSetting < EnumSiteSetting
|
||||
|
||||
def self.valid_value?(val)
|
||||
val.to_i.to_s == val.to_s &&
|
||||
valid_values.any? { |v| v == val.to_i }
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user