Commit 6b4602a733ddd485c751e52ae831d1c4f2165b92

Authored by Peter LeFanu Lumsdaine
1 parent 45f9cca9

Grammar fix in error message for blocked login (in "application_controller.rb")

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/application_controller.rb
... ... @@ -32,7 +32,7 @@ class ApplicationController < ActionController::Base
32 32 def reject_blocked!
33 33 if current_user && current_user.blocked?
34 34 sign_out current_user
35   - flash[:alert] = "Your account is blocked. Retry when an admin unblock it."
  35 + flash[:alert] = "Your account is blocked. Retry when an admin has unblocked it."
36 36 redirect_to new_user_session_path
37 37 end
38 38 end
... ... @@ -40,7 +40,7 @@ class ApplicationController < ActionController::Base
40 40 def after_sign_in_path_for resource
41 41 if resource.is_a?(User) && resource.respond_to?(:blocked?) && resource.blocked?
42 42 sign_out resource
43   - flash[:alert] = "Your account is blocked. Retry when an admin unblock it."
  43 + flash[:alert] = "Your account is blocked. Retry when an admin has unblocked it."
44 44 new_user_session_path
45 45 else
46 46 super
... ...