diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
---|---|---|
committer | Andrey Kumanyaev <me@zzet.org> | 2013-05-05 18:01:10 +0400 |
commit | 67ccc8b52aceebea9c0cb22b3277daf0b467c78e (patch) | |
tree | 6139a7674fe0f9d70a0af51c383fd72aa91cc54c /app/views/devise | |
parent | 493b5ff011d5788f669adabf978a40b49b8cf6a3 (diff) | |
download | gitlab-ce-67ccc8b52aceebea9c0cb22b3277daf0b467c78e.tar.gz |
Replace old hashes with new 1.9 ruby hashes (rebase)
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/confirmations/new.html.erb | 4 | ||||
-rw-r--r-- | app/views/devise/mailer/confirmation_instructions.html.erb | 2 | ||||
-rw-r--r-- | app/views/devise/mailer/reset_password_instructions.html.erb | 2 | ||||
-rw-r--r-- | app/views/devise/mailer/unlock_instructions.html.erb | 2 | ||||
-rw-r--r-- | app/views/devise/registrations/edit.html.erb | 6 | ||||
-rw-r--r-- | app/views/devise/shared/_links.erb | 4 | ||||
-rw-r--r-- | app/views/devise/unlocks/new.html.erb | 4 |
7 files changed, 12 insertions, 12 deletions
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 5399a961570..adc9b672092 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -1,6 +1,6 @@ <h2>Resend confirmation instructions</h2> -<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %> +<%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> <div><%= f.label :email %><br /> @@ -9,4 +9,4 @@ <div><%= f.submit "Resend confirmation instructions" %></div> <% end %> -<%= render :partial => "devise/shared/links" %> +<%= render partial: "devise/shared/links" %> diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb index a6ea8ca17e8..7b4fd526964 100644 --- a/app/views/devise/mailer/confirmation_instructions.html.erb +++ b/app/views/devise/mailer/confirmation_instructions.html.erb @@ -2,4 +2,4 @@ <p>You can confirm your account through the link below:</p> -<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p> +<p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @resource.confirmation_token) %></p> diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb index ae9e888abb9..e1144e943b4 100644 --- a/app/views/devise/mailer/reset_password_instructions.html.erb +++ b/app/views/devise/mailer/reset_password_instructions.html.erb @@ -2,7 +2,7 @@ <p>Someone has requested a link to change your password, and you can do this through the link below.</p> -<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @resource.reset_password_token) %></p> +<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @resource.reset_password_token) %></p> <p>If you didn't request this, please ignore this email.</p> <p>Your password won't change until you access the link above and create a new one.</p> diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb index 2263c219522..0429883f05b 100644 --- a/app/views/devise/mailer/unlock_instructions.html.erb +++ b/app/views/devise/mailer/unlock_instructions.html.erb @@ -4,4 +4,4 @@ <p>Click the link below to unlock your account:</p> -<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @resource.unlock_token) %></p> +<p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @resource.unlock_token) %></p> diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index dd26e8a47b8..139acf28a9f 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -1,6 +1,6 @@ <h2>Edit <%= resource_name.to_s.humanize %></h2> -<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> +<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %> <%= devise_error_messages! %> <div><%= f.label :email %><br /> @@ -18,11 +18,11 @@ <div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br /> <%= f.password_field :current_password %></div> -<div><%= f.submit "Update", :class => "input_button" %></div> +<div><%= f.submit "Update", class: "input_button" %></div> <% end %> <h3>Cancel my account</h3> -<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p> +<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), confirm: "Are you sure?", method: :delete %>.</p> <%= link_to "Back", :back %> diff --git a/app/views/devise/shared/_links.erb b/app/views/devise/shared/_links.erb index d7499d14ec5..a47b5ff1ec7 100644 --- a/app/views/devise/shared/_links.erb +++ b/app/views/devise/shared/_links.erb @@ -1,5 +1,5 @@ <%- if controller_name != 'sessions' %> - <%= link_to "Sign in", new_session_path(resource_name), :class => "btn" %><br /> + <%= link_to "Sign in", new_session_path(resource_name), class: "btn" %><br /> <% end -%> <%- if devise_mapping.registerable? && controller_name != 'registrations' %> @@ -7,7 +7,7 @@ <% end -%> <%- if devise_mapping.recoverable? && controller_name != 'passwords' %> -<%= link_to "Forgot your password?", new_password_path(resource_name), :class => "btn" %><br /> +<%= link_to "Forgot your password?", new_password_path(resource_name), class: "btn" %><br /> <% end -%> <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %> diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb index b787e648ca2..f9277d1673f 100644 --- a/app/views/devise/unlocks/new.html.erb +++ b/app/views/devise/unlocks/new.html.erb @@ -1,6 +1,6 @@ <h2>Resend unlock instructions</h2> -<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %> +<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %> <%= devise_error_messages! %> <div><%= f.label :email %><br /> @@ -9,4 +9,4 @@ <div><%= f.submit "Resend unlock instructions" %></div> <% end %> -<%= render :partial => "devise/shared/links" %> +<%= render partial: "devise/shared/links" %> |