Skip to content

Commit

Permalink
Fix variable shadowing in Page#is_content_type?.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Mar 3, 2010
1 parent fc62efb commit 7aad3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spidr/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ def method_missing(sym,*args,&block)
end

def is_content_type?(type)
content_types.each { |type| return true if type.include?(type) }
content_types.each { |content| return true if content.include?(type) }
return false
end

Expand Down

0 comments on commit 7aad3ec

Please sign in to comment.