fix the build

This commit is contained in:
Régis Hanol 2015-09-14 10:48:24 +02:00
parent b9a9a91335
commit 2c06db67a9
4 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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