Skip to content

Commit c6dd3d1

Browse files
authored
Merge pull request #100 from driehuis/master
Work around for issue #97
2 parents 5f429ee + 9c05e03 commit c6dd3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/olelo/application.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def initialize(app = nil)
7575

7676
error StandardError do |error|
7777
Olelo.logger.error error
78-
if on_error && http_accept? /html/
78+
if on_error && http_accept?(/html/)
7979
(error.try(:messages) || [error.message]).each {|msg| flash.error!(msg) }
8080
halt render(on_error)
8181
end

0 commit comments

Comments
 (0)