Skip to content

Rename Actor

Sunny Ripert edited this page Jul 22, 2022 · 1 revision

If you application already uses a class called “Actor”, you can build your own by changing the gem’s require statement:

gem "service_actor", require: "service_actor/base"

And building your own class to inherit from:

class ApplicationActor
  include ServiceActor::Base
end
Clone this wiki locally