mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
ea932b74e7
also fixes random ordering of tests failure in site settings
10 lines
259 B
Ruby
10 lines
259 B
Ruby
class S3RegionSiteSetting
|
|
def self.valid_value?(val)
|
|
values.include? val
|
|
end
|
|
|
|
def self.values
|
|
@values ||= ['', 'us-east-1', 'us-west-1', 'us-west-2', 'eu-west-1', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'sa-east-1'].sort
|
|
end
|
|
end
|