Permalink
Browse files

Fixed several other references to model name for delete and history,

where @model_config.list.label was called, but @model_config.navigation.label should
have been called.
  • Loading branch information...
1 parent aedb196 commit cad2d0275cb8473208b7ac82211c70fcbc11dd0e @wolframarnold wolframarnold committed Mar 14, 2011
@@ -24,7 +24,7 @@ def slider
def for_model
@page_type = @abstract_model.pretty_name.downcase
- @page_name = t("admin.history.page_name", :name => @model_config.list.label)
+ @page_name = t("admin.history.page_name", :name => @model_config.navigation.label)
@general = true
@page_count, @history = AbstractHistory.history_for_model @abstract_model, params[:query], params[:sort], params[:sort_reverse], params[:all], params[:page]
@@ -111,7 +111,7 @@ def update
def delete
@authorization_adapter.authorize(:delete, @abstract_model, @object) if @authorization_adapter
- @page_name = t("admin.actions.delete").capitalize + " " + @model_config.list.label.downcase
+ @page_name = t("admin.actions.delete").capitalize + " " + @model_config.navigation.label.downcase
@page_type = @abstract_model.pretty_name.downcase
render :layout => 'rails_admin/delete'
@@ -131,7 +131,7 @@ def destroy
def bulk_delete
@authorization_adapter.authorize(:bulk_delete, @abstract_model) if @authorization_adapter
- @page_name = t("admin.actions.delete").capitalize + " " + @model_config.list.label.downcase
+ @page_name = t("admin.actions.delete").capitalize + " " + @model_config.navigation.label.downcase
@page_type = @abstract_model.pretty_name.downcase
render :layout => 'rails_admin/delete'

0 comments on commit cad2d02

Please sign in to comment.