summaryrefslogtreecommitdiff
path: root/app/models/concerns/featurable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/concerns/featurable.rb')
-rw-r--r--app/models/concerns/featurable.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/concerns/featurable.rb b/app/models/concerns/featurable.rb
index 08189d83534..3b741208221 100644
--- a/app/models/concerns/featurable.rb
+++ b/app/models/concerns/featurable.rb
@@ -30,9 +30,9 @@ module Featurable
STRING_OPTIONS = HashWithIndifferentAccess.new({
'disabled' => DISABLED,
- 'private' => PRIVATE,
- 'enabled' => ENABLED,
- 'public' => PUBLIC
+ 'private' => PRIVATE,
+ 'enabled' => ENABLED,
+ 'public' => PUBLIC
}).freeze
class_methods do
@@ -114,7 +114,7 @@ module Featurable
self.errors.add(field, "cannot have public visibility level") if not_allowed
end
- (self.class.available_features - feature_validation_exclusion).each {|f| validator.call("#{f}_access_level")}
+ (self.class.available_features - feature_validation_exclusion).each { |f| validator.call("#{f}_access_level") }
end
# Features that we should exclude from the validation