Skip to content
Browse files

fix deprecation for Rails 2.3.11

  • Loading branch information...
1 parent c0bdd78 commit 582966302f04b1af63cbecee949c0358f43ea76b @avonderluft avonderluft committed May 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/reorder/page_helper.rb
View
2 lib/reorder/page_helper.rb
@@ -1,6 +1,6 @@
module Reorder::PageHelper
def order_links(page)
- returning String.new do |output|
+ String.new.tap do |output|
%w{move_to_top move_higher move_lower move_to_bottom}.each do |action|
output << link_to(image("#{action}.png", :alt => action.humanize),
self.send("page_#{action}_url", :id => page),

0 comments on commit 5829663

Please sign in to comment.
Something went wrong with that request. Please try again.