fix double render
authorTom Clegg <tom@clinicalfuture.com>
Thu, 7 Feb 2013 19:03:26 +0000 (14:03 -0500)
committerTom Clegg <tom@clinicalfuture.com>
Thu, 7 Feb 2013 19:03:26 +0000 (14:03 -0500)
app/controllers/application_controller.rb

index 5c9bce9ba30eb97895a8ab0301a908c196be7800..6535888996304af716e9b12c1ab26b056960b0ff 100644 (file)
@@ -56,7 +56,7 @@ class ApplicationController < ActionController::Base
 
   def show
     if !@object
-      render_not_found("object not found")
+      return render_not_found("object not found")
     end
     respond_to do |f|
       f.json { render json: @object }