Skip to content

before_send and after_send callbacks are shared across classes #6

@tonydewan

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions