Skip to content

Instantly share code, notes, and snippets.

@amiri
Created May 10, 2019 23:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiri/6ae3e2944e9aee5a5fe23a9bedae859d to your computer and use it in GitHub Desktop.
Save amiri/6ae3e2944e9aee5a5fe23a9bedae859d to your computer and use it in GitHub Desktop.
sub _build_default_tcpa_acknowledgment_copy_obj {
my $self = shift;
+
return unless $self->tcpa_placement;
+
+ my $tcpa_placement = $self->tcpa_placement;
+
+ my $placements_16969 = set(qw(
+ non_partner_college
+ programs
+ ));
+
+ if ( $placements_16969->includes($tcpa_placement)
+ and $self->_qualifies_for_testgroup_16969
+ and $self->testgroup_16969 == 2
+ ) {
+ $tcpa_placement = "${tcpa_placement}-16969";
+ }
+
return $self->schema->resultset('TcpaAcknowledgmentCopy')->default_copy_obj({
- placement => $self->tcpa_placement,
+ placement => $tcpa_placement,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment