Permalink
Browse files

Fix

  • Loading branch information...
1 parent 8935aef commit 027d6d053b86f29e641a4067d669ca782256c33c @ryanstout committed Jul 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/blog_posts/_image.html.erb
View
2 app/views/blog_posts/_image.html.erb
@@ -15,7 +15,7 @@
<% end %>
<td>
[<%= link_to_function('delete', "removeImage(#{g.options[:child_index] || g.object.id})") %>]
- <% if ((["2", "3", "7"] <=> Rails::VERSION::STRING.split('.')) > 0) %>
+ <% if ((["2", "3", "7"] <=> Rails::VERSION::STRING.split('.')) < 0) %>
<%= g.hidden_field :_destroy, :id => "image_#{g.options[:child_index] || g.object.id}" %>
<% else %>
<%= g.hidden_field :_delete, :id => "image_#{g.options[:child_index] || g.object.id}" %>

0 comments on commit 027d6d0

Please sign in to comment.