application_controller.rb.patch

Pavel Rosick√Ĺ, 2016-11-11 11:06

Download (641 Bytes)

View differences:

application_controller.rb (working copy)
487 487
      format.html {
488 488
        render :template => 'common/error', :layout => use_layout, :status => @status
489 489
      }
490
      format.js {
491
        render :status => @status, :text => "alert(\"#{@status}: #{@message}\")"
492
      }
493
      format.api {
494
        @error_messages = [@message]
495
        render :template => 'common/error_messages.api', :status => @status
496
      }
490 497
      format.any { head @status }
491 498
    end
492 499
  end