app/mailers/user_mailer.rb
# TODO: Figure out how to refactor this with ResourceRegistry
Figure out how to refactor this with ResourceRegistry
Figure out how to refactor this with ResourceRegistry
def initial_employee_invitation_email(email, census_employee, invitation)
    mail({to: email, subject: "Enroll Now: Your Plan Open Enrollment Period has Begun"}) do |format|
      if EnrollRegistry[:enroll_app].setting(:site_key).item == :dc
        format.html { render "dc_initial_employee_invitation_email", :locals => { :census_employee => census_employee, :invitation => invitation }}
      else
        format.html { render "initial_employee_invitation_email", :locals => { :census_employee => census_employee, :invitation => invitation }}
      end
    end
  end
def initial_employee_invitation_email ( email , census_employee , invitation ) mail ( { to : email , subject : "Enroll Now: Your Plan Open Enrollment Period has Begun" } ) do | format | if EnrollRegistry [ :enroll_app ] . setting ( :site_key ) . item == :dc format . html { render "dc_initial_employee_invitation_email" , :locals => { :census_employee => census_employee , :invitation => invitation } } else format . html { render "initial_employee_invitation_email" , :locals => { :census_employee => census_employee , :invitation => invitation } } end end end
TODO: Figure out how to refactor this with ResourceRegistry
TODO : Figure out how to refactor this with ResourceRegistry
email
census_employee
invitation