Permalink
Browse files

Mapping instance_methods to strings since 1.9 returns symbols

  • Loading branch information...
qrush committed Jun 30, 2009
1 parent 8a40d68 commit 800f383a0ae97e1bae0941b129acf6f6030d09c1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/matchers/have_attached_file_matcher.rb
@@ -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}?")

0 comments on commit 800f383

Please sign in to comment.