Skip to content

Commit

Permalink
Merge pull request railsadminteam#1646 from signpost/master
Browse files Browse the repository at this point in the history
These templates explode with older versions of rails where .in? doesn't accept more than one argument
  • Loading branch information
bbenezech committed May 18, 2013
2 parents 59adb72 + d7deefc commit 074a985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/_dashboard_history.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
%td= label
- else
%td= "#{t.table} ##{t.item}"
%td= t.message.in?('delete', 'new') ? t("admin.actions.#{t.message}.done").capitalize : t.message
%td= t.message.in?(['delete', 'new']) ? t("admin.actions.#{t.message}.done").capitalize : t.message
2 changes: 1 addition & 1 deletion app/views/rails_admin/main/history.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
%td= label
- else
%td= "#{@abstract_model.config.label} ##{object.item}"
%td= object.message.in?('delete', 'new') ? t("admin.actions.#{object.message}.done").capitalize : object.message
%td= object.message.in?(['delete', 'new']) ? t("admin.actions.#{object.message}.done").capitalize : object.message

- unless params[:all] || !@history.respond_to?(:current_page)
= paginate(@history, :theme => 'twitter-bootstrap', :remote => true)
Expand Down

0 comments on commit 074a985

Please sign in to comment.