def signup_confirm(user, token)
with_recipient_locale user do
- @url = url_for(:controller => "users", :action => "confirm",
+ @url = url_for(:controller => "confirmations", :action => "confirm",
:display_name => user.display_name,
:confirm_string => token.token)
def email_confirm(user, token)
with_recipient_locale user do
@address = user.new_email
- @url = url_for(:controller => "users", :action => "confirm_email",
+ @url = url_for(:controller => "confirmations", :action => "confirm_email",
:confirm_string => token.token)
mail :to => user.new_email,
def lost_password(user, token)
with_recipient_locale user do
- @url = url_for(:controller => "users", :action => "reset_password",
+ @url = url_for(:controller => "passwords", :action => "reset_password",
:token => token.token)
mail :to => user.email,
mail :from => from_address(message.sender.display_name, "m", message.id, message.digest),
:to => message.recipient.email,
- :subject => I18n.t("user_mailer.message_notification.subject_header", :subject => message.title)
+ :subject => t(".subject", :message_title => message.title)
end
end
avatar = user&.avatar
if avatar&.attached?
if avatar.variable?
- image = avatar.variant(:resize => "50x50>").processed
- image.service.download(image.key)
+ avatar.variant(:resize_to_limit => [50, 50]).download
else
avatar.blob.download
end