Skip to content

before_send and after_send callbacks are shared across classes #6

Description

@tonydewan
class ResetPasswordEmail < ActiveMailer::Base
  before_send :do_a_thing
  
  def do_a_thing
  end
end

class InviteUserEmail < ActiveMailer::Base
end

InviteUserEmail.before_send_actions
=> [:do_a_thing]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions