You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.3 KiB
65 lines
1.3 KiB
3 years ago
|
class FeatureToggle
|
||
2 years ago
|
# Disable check on preview apps to allow for testing of future forms
|
||
|
def self.saledate_collection_window_validation_enabled?
|
||
2 years ago
|
Rails.env.production? || Rails.env.test? || Rails.env.staging?
|
||
2 years ago
|
end
|
||
|
|
||
2 years ago
|
def self.startdate_collection_window_validation_enabled?
|
||
2 years ago
|
Rails.env.production? || Rails.env.test?
|
||
3 years ago
|
end
|
||
2 years ago
|
|
||
2 years ago
|
def self.startdate_two_week_validation_enabled?
|
||
2 years ago
|
Rails.env.production? || Rails.env.test? || Rails.env.staging?
|
||
2 years ago
|
end
|
||
|
|
||
2 years ago
|
def self.saledate_two_week_validation_enabled?
|
||
|
Rails.env.production? || Rails.env.test? || Rails.env.staging? || Rails.env.review?
|
||
|
end
|
||
|
|
||
2 years ago
|
def self.sales_log_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
|
def self.managing_owning_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
2 years ago
|
def self.scheme_toggle_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
|
def self.location_toggle_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
|
def self.managing_for_other_user_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
2 years ago
|
def self.bulk_upload_lettings_logs?
|
||
|
!Rails.env.production?
|
||
|
end
|
||
|
|
||
|
def self.bulk_upload_sales_logs?
|
||
2 years ago
|
!Rails.env.production?
|
||
|
end
|
||
2 years ago
|
|
||
|
def self.upload_enabled?
|
||
|
!Rails.env.development?
|
||
|
end
|
||
2 years ago
|
|
||
2 years ago
|
def self.force_crossover?
|
||
|
return false if Rails.env.test?
|
||
|
|
||
|
!Rails.env.production?
|
||
|
end
|
||
|
|
||
2 years ago
|
def self.collection_2023_2024_year_enabled?
|
||
2 years ago
|
true
|
||
2 years ago
|
end
|
||
2 years ago
|
|
||
|
def self.merge_organisations_enabled?
|
||
|
!Rails.env.production?
|
||
|
end
|
||
3 years ago
|
end
|