Fix self-destruct page not using theme styles (#2490)
This commit is contained in:
		
							parent
							
								
									5b0382abc5
								
							
						
					
					
						commit
						73a94c3b3f
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -176,7 +176,10 @@ class ApplicationController < ActionController::Base | ||||||
|     return unless self_destruct? |     return unless self_destruct? | ||||||
| 
 | 
 | ||||||
|     respond_to do |format| |     respond_to do |format| | ||||||
|       format.any  { render 'errors/self_destruct', layout: 'auth', status: 410, formats: [:html] } |       format.any do | ||||||
|  |         use_pack 'error' | ||||||
|  |         render 'errors/self_destruct', layout: 'auth', status: 410, formats: [:html] | ||||||
|  |       end | ||||||
|       format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: code } |       format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: code } | ||||||
|     end |     end | ||||||
|   end |   end | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue