Skip to content

Commit

Permalink
protected methods return false unless a second argument is passed to
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tenderlove authored and josh committed Nov 27, 2012
1 parent 2daf79b commit cde6bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/directive_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def directives
@directives ||= header.lines.each_with_index.map { |line, index|
if directive = line[DIRECTIVE_PATTERN, 1]
name, *args = Shellwords.shellwords(directive)
if respond_to?("process_#{name}_directive")
if respond_to?("process_#{name}_directive", true)
[index + 1, name, *args]
end
end
Expand Down

0 comments on commit cde6bc7

Please # to comment.