Skip to content

Commit 2b520a0

Browse files
Remove new undocumented behavior
of passing an object that responds to #url.
1 parent c907709 commit 2b520a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/better_errors.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ def self.editor
105105
# @param [Proc] proc
106106
#
107107
def self.editor=(editor)
108-
if editor.respond_to? :url
109-
@editor = editor
110-
elsif editor.is_a? Symbol
108+
if editor.is_a? Symbol
111109
@editor = Editor.for_symbol(editor)
112110
raise(ArgumentError, "Symbol #{editor} is not a symbol in the list of supported errors.") unless editor
113111
elsif editor.is_a? String

0 commit comments

Comments
 (0)