Skip to content

Commit dfa708d

Browse files
committed
Flash keys are Symbol in Rails 4.0
1 parent c71e2d2 commit dfa708d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/layouts/rails_admin/pjax.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.page-header
77
%h1= @page_name
88
- flash && flash.each do |key, value|
9-
- key = 'danger' if key == 'error'
9+
- key = 'danger' if key.to_s == 'error'
1010
.alert{class: "alert-#{key}"}
1111
%a.close{href: '#', :'data-dismiss' => "alert"} ×
1212
= value

0 commit comments

Comments
 (0)