We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c907709 commit 2b520a0Copy full SHA for 2b520a0
lib/better_errors.rb
@@ -105,9 +105,7 @@ def self.editor
105
# @param [Proc] proc
106
#
107
def self.editor=(editor)
108
- if editor.respond_to? :url
109
- @editor = editor
110
- elsif editor.is_a? Symbol
+ if editor.is_a? Symbol
111
@editor = Editor.for_symbol(editor)
112
raise(ArgumentError, "Symbol #{editor} is not a symbol in the list of supported errors.") unless editor
113
elsif editor.is_a? String
0 commit comments