Permalink
Browse files

Fix deprecation warning related to :confirm option.

  • Loading branch information...
1 parent 8bfc202 commit e298caa45297f504ee76db8517aec4074f847c1a @ugisozols ugisozols committed Jun 15, 2012
@@ -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),
@@ -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 e298caa

Please sign in to comment.