diff --git a/app/models/mixins/supports_feature_mixin.rb b/app/models/mixins/supports_feature_mixin.rb index 6957bf3d7c4..63c86f51feb 100644 --- a/app/models/mixins/supports_feature_mixin.rb +++ b/app/models/mixins/supports_feature_mixin.rb @@ -47,8 +47,6 @@ module SupportsFeatureMixin extend ActiveSupport::Concern - COMMON_FEATURES = %i[create delete destroy refresh_ems update].freeze - # Whenever this mixin is included we define all features as unsupported by default. # This way we can query for every feature included do @@ -58,7 +56,7 @@ module SupportsFeatureMixin end def self.reason_or_default(reason = nil) - reason.present? ? reason : _("Feature not available/supported") + reason.presence || _("Feature not available/supported") end # query instance for the reason why the feature is unsupported