Project

General

Profile

Patch #24323 » application_controller.rb.patch

Pavel Rosický, 2016-11-11 11:06

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
(1-1/2)