Files
manyfold/app/lib/cli/email_command.rb
T

14 lines
293 B
Ruby

require "thor"
module Cli
class EmailCommand < Thor
COMMAND = "email"
DESCRIPTION = "test email"
desc "test_email", "sends test email"
def test
UserMailer.with(user: User.find(1)).account_approved.deliver_now # rubocop:disable Pundit/UsePolicyScope
end
end
end