Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
Mapping instance_methods to strings since 1.9 returns symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
qrush committed Jun 30, 2009
1 parent 8a40d68 commit 800f383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/matchers/have_attached_file_matcher.rb
Expand Up @@ -30,7 +30,7 @@ def description
protected

def responds?
methods = @subject.instance_methods
methods = @subject.instance_methods.map(&:to_s)
methods.include?("#{@attachment_name}") &&
methods.include?("#{@attachment_name}=") &&
methods.include?("#{@attachment_name}?")
Expand Down

0 comments on commit 800f383

Please sign in to comment.