Make info extraction method more safe

This commit is contained in:
Paul Chavard 2018-08-13 16:40:16 +02:00
parent 839b7627ac
commit 9de3e6e74b
3 changed files with 4 additions and 9 deletions

View file

@ -20,7 +20,7 @@ Rails.application.configure do
config.lograge.custom_payload do |controller|
{
xhr: !!controller.request.xhr?
xhr: !!controller&.request&.xhr?
}
end
end