Skip to content

Commit cde6bc7

Browse files
tenderlovejosh
authored andcommitted
protected methods return false unless a second argument is passed to
respond_to?. This only impacts trunk ruby, but will be included in Ruby 2.0. https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/34580
1 parent 2daf79b commit cde6bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/directive_processor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def directives
126126
@directives ||= header.lines.each_with_index.map { |line, index|
127127
if directive = line[DIRECTIVE_PATTERN, 1]
128128
name, *args = Shellwords.shellwords(directive)
129-
if respond_to?("process_#{name}_directive")
129+
if respond_to?("process_#{name}_directive", true)
130130
[index + 1, name, *args]
131131
end
132132
end

0 commit comments

Comments
 (0)