Skip to content

Commit

Permalink
adding :scope key to all translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed May 17, 2009
1 parent c096f73 commit ca16aa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/controllers/clearance/passwords_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def update
params[:user][:password_confirmation])
@user.confirm_email! unless @user.email_confirmed?
sign_user_in(@user)
flash[:success] = translate(:signed_in, :default => "Signed in.")
flash[:success] = translate(:signed_in,
:scope => [:clearance, :controllers, :passwords],
:default => "Signed in.")
redirect_to url_after_update
else
render :template => 'passwords/edit'
Expand Down
4 changes: 3 additions & 1 deletion app/controllers/clearance/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def create

def destroy
forget(current_user)
flash[:success] = translate(:signed_out, :default => "Signed out.")
flash[:success] = translate(:signed_out,
:scope => [:clearance, :controllers, :sessions],
:default => "Signed out.")
redirect_to url_after_destroy
end

Expand Down

0 comments on commit ca16aa9

Please sign in to comment.