mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-11 22:34:46 -05:00
12 lines
324 B
Ruby
12 lines
324 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Form::EmailSubscriptionsConfirmation
|
|
include ActiveModel::Model
|
|
include ActiveModel::Attributes
|
|
|
|
attribute :agreement_email_volume, :boolean
|
|
attribute :agreement_privacy_and_terms, :boolean
|
|
|
|
validates :agreement_email_volume, :agreement_privacy_and_terms, acceptance: true
|
|
end
|