chore(task): deprecate after party tasks

This commit is contained in:
Colin Darie 2024-10-09 12:36:42 +02:00
parent 9eb9e80232
commit efa744c227
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4

View file

@ -0,0 +1,17 @@
# frozen_string_literal: true
require 'rails/generators'
Rails.application.config.after_initialize do
module AfterParty
module Generators
class TaskGenerator
prepend Module.new {
def invoke_all
warn "[DEPRECATION] 'after_party:task' is deprecated. Use 'rails generate maintenance_tasks:task #{name}' instead."
end
}
end
end
end
end