Make info extraction method more safe
This commit is contained in:
parent
839b7627ac
commit
9de3e6e74b
3 changed files with 4 additions and 9 deletions
|
@ -20,7 +20,7 @@ Rails.application.configure do
|
|||
|
||||
config.lograge.custom_payload do |controller|
|
||||
{
|
||||
xhr: !!controller.request.xhr?
|
||||
xhr: !!controller&.request&.xhr?
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue