19 lines
439 B
Ruby
19 lines
439 B
Ruby
|
# == Schema Information
|
||
|
#
|
||
|
# Table name: safe_mailers
|
||
|
#
|
||
|
# id :bigint not null, primary key
|
||
|
# forced_delivery_method :string
|
||
|
# created_at :datetime not null
|
||
|
# updated_at :datetime not null
|
||
|
#
|
||
|
class SafeMailer < ApplicationRecord
|
||
|
before_create do
|
||
|
raise if SafeMailer.count == 1
|
||
|
end
|
||
|
|
||
|
def self.forced_delivery_method
|
||
|
first&.forced_delivery_method
|
||
|
end
|
||
|
end
|