Commit 67fdc2f14728b808cee833c3d3a54e3045bcd894

Authored by Daniela Feitosa
1 parent dbb81838

small-enhancement: changed name of attribute

(ActionItem2998)
app/models/user.rb
... ... @@ -72,7 +72,7 @@ class User < ActiveRecord::Base
72 72 :activation_code => user.activation_code,
73 73 :environment => user.environment.name,
74 74 :url => user.environment.top_url,
75   - :return_to => user.return_to
  75 + :redirection => (true if user.return_to)
76 76 end
77 77  
78 78 def signup_welcome_email(user)
... ...
app/views/user/mailer/activation_code.rhtml
1 1 <%= _('Hi, %{recipient}!') % { :recipient => @recipient } %>
2 2  
3   -<%= word_wrap(_('Welcome to %{environment}! To activate your account, follow the link: %{activation_url}') % { :environment => @environment, :activation_url => @url + url_for(:controller => :account, :action => :activate, :activation_code => @activation_code, :redirection => (true if @return_to) ) }) %>
  3 +<%= word_wrap(_('Welcome to %{environment}! To activate your account, follow the link: %{activation_url}') % { :environment => @environment, :activation_url => @url + url_for(:controller => :account, :action => :activate, :activation_code => @activation_code, :redirection => @redirection) }) %>
4 4  
5 5 <%= _("Greetings,") %>
6 6  
... ...