-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send abo magazin confirmation email (#1129) #1211
Send abo magazin confirmation email (#1129) #1211
Conversation
7123bbf
to
846353e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
end | ||
|
||
def placeholder_language | ||
Event::Course.language_labels.stringify_keys[@person.language] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das sollte wohl nicht vom Kurs kommen, eher von der Person. (Auch wenn die Werte jetzt gleich sein mögen, sind die unabhängig voneinander).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ja, das macht viel mehr Sinn, hab ich angepasst.
magazin: [ | ||
AboCost.new(amount: 60, country: :switzerland), | ||
AboCost.new(amount: 76, country: :international) | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anstelle eines Arrays wäre ein Hash mit dem country als Key effizienter. Dann braucht es im aufrufenden Code kein find
, es kann direkt mit [country]
auf den richtigen Wert zugegriffen werden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ist nicht ganz so easy umzusetzen (locales, fallback für die verschiedenen internationalen Länder, partial wird auch von einem Abo ohne country verwendet), ich lasse das vorerst so
a1f49d5
to
a73d345
Compare
No description provided.