Permalink
Browse files

Fixed incorrect localized model name.

  • Loading branch information...
1 parent d39f81e commit 8f98837eeb568c509d926bc6ed12eeef78dc5039 Francesc Esplugas committed Feb 13, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/controllers/admin/master_controller.rb
@@ -156,6 +156,7 @@ def update
# correct locale.
if @resource[:class].eql?(Typus.user_class)
I18n.locale = @current_user.reload.preferences[:locale]
+ @resource[:human_name] = params[:controller].extract_human_name
end
flash[:success] = _("{{model}} successfully updated.", :model => @resource[:human_name])

0 comments on commit 8f98837

Please sign in to comment.