summaryrefslogtreecommitdiff
path: root/app/workers/concerns/worker_attributes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/concerns/worker_attributes.rb')
-rw-r--r--app/workers/concerns/worker_attributes.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/workers/concerns/worker_attributes.rb b/app/workers/concerns/worker_attributes.rb
index 6f91418e38c..8f7a3da5429 100644
--- a/app/workers/concerns/worker_attributes.rb
+++ b/app/workers/concerns/worker_attributes.rb
@@ -35,17 +35,9 @@ module WorkerAttributes
class_methods do
def feature_category(value, *extras)
- raise "Invalid category. Use `feature_category_not_owned!` to mark a worker as not owned" if value == :not_owned
-
set_class_attribute(:feature_category, value)
end
- # Special case: mark this work as not associated with a feature category
- # this should be used for cross-cutting concerns, such as mailer workers.
- def feature_category_not_owned!
- set_class_attribute(:feature_category, :not_owned)
- end
-
# Special case: if a worker is not owned, get the feature category
# (if present) from the calling context.
def get_feature_category