lib/monocle/server.rb in monocle-0.2.4 vs lib/monocle/server.rb in monocle-0.2.5

- old
+ new

@@ -12,14 +12,10 @@ view_object(params[:type], params[:id]) content_type('image/gif') Base64.decode64('R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==') end - get '/:type/click/:id.:format' do - click_object(params[:type], params[:id], params[:redirect_to]) - end - - get '/:type/click/:redirect_to/:id.:format' do + get '/:type/click/:redirect_to/:id' do click_object(params[:type], params[:id], params[:redirect_to]) end def view_object(type, id) if object = type.classify.constantize.find(id)