forked from OpenNeo/impress
Fix crash when rendering modeling errors
Oh right, you can't return text from a format.json, but text can be json!
This commit is contained in:
parent
1e690d9f6c
commit
a21ae014ef
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class PetsController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
format.json do
|
format.json do
|
||||||
render :text => options[:long_message], :status => options[:status]
|
render :json => options[:long_message], :status => options[:status]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue