lib/rewritten/server.rb in rewritten-0.6.0 vs lib/rewritten/server.rb in rewritten-0.7.0

- old
+ new

@@ -199,10 +199,11 @@ if @to != '' and @translations.size > 0 # delete old translations Rewritten.remove_all_translations(@old_to) # create new translations + Rewritten.add_translations(@to, @translations) redirect u("/to?to=#{escape(@to)}") else show "edit" @@ -220,10 +221,11 @@ show "new" end end get "/to" do - translations = Rewritten.list_range(params[:to], 0, -1) + #translations = Rewritten.list_range(params[:to], 0, -1) + translations = Rewritten.z_range(params[:to], 0, -1) show "to" end get "/cleanup" do # find keys that have no target