discourse/app/models/s3_region_site_setting.rb

9 lines
270 B
Ruby
Raw Normal View History

class S3RegionSiteSetting
def self.valid_value?(val)
all_values.include? val
end
def self.all_values
2013-06-13 00:02:32 +08:00
@all_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