We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f429ee + 9c05e03 commit c6dd3d1Copy full SHA for c6dd3d1
lib/olelo/application.rb
@@ -75,7 +75,7 @@ def initialize(app = nil)
75
76
error StandardError do |error|
77
Olelo.logger.error error
78
- if on_error && http_accept? /html/
+ if on_error && http_accept?(/html/)
79
(error.try(:messages) || [error.message]).each {|msg| flash.error!(msg) }
80
halt render(on_error)
81
end
0 commit comments