18F/identity-idp

View on GitHub
app/forms/resend_email_confirmation_form.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class ResendEmailConfirmationForm
  include ActiveModel::Model

  attr_reader :email, :terms_accepted

  def self.model_name
    ActiveModel::Name.new(self, nil, 'User')
  end

  def initialize(params = {})
    @email = params[:email]
    @terms_accepted = params[:terms_accepted]
  end

  def resend
    'true'
  end
end