Permalink
Browse files

Fix deprecation warning related to :confirm option.

  • Loading branch information...
1 parent a859572 commit 4fd636582ead0cc1fae806e90bb3818258c480f3 @ugisozols ugisozols committed Jun 15, 2012
View
4 app/views/refinery/inquiries/admin/inquiries/_inquiry.html.erb
@@ -8,7 +8,9 @@
refinery.inquiries_admin_inquiry_path(inquiry),
:class => "cancel confirm-delete",
:title => t('refinery.inquiries.admin.inquiries.delete'),
- :confirm => t('refinery.admin.delete.message', :title => inquiry.name),
+ :data => {
+ :confirm => t('refinery.admin.delete.message', :title => inquiry.name)
+ },
:method => :delete -%>
<%= link_to refinery_icon_tag('zoom.png'), refinery.inquiries_admin_inquiry_path(inquiry),
View
4 app/views/refinery/inquiries/admin/inquiries/show.html.erb
@@ -20,7 +20,9 @@
refinery.inquiries_admin_inquiry_path(@inquiry),
:class => 'delete_icon no-tooltip confirm-delete',
:title => t('refinery.inquiries.admin.inquiries.delete'),
- :confirm => t('refinery.admin.delete.message', :title => @inquiry.name),
+ :data => {
+ :confirm => t('refinery.admin.delete.message', :title => @inquiry.name)
+ },
:method => :delete %>
</li>
</ul>

0 comments on commit 4fd6365

Please sign in to comment.