From 800f383a0ae97e1bae0941b129acf6f6030d09c1 Mon Sep 17 00:00:00 2001 From: Nick Quaranto Date: Tue, 30 Jun 2009 13:49:35 -0400 Subject: [PATCH] Mapping instance_methods to strings since 1.9 returns symbols --- lib/paperclip/matchers/have_attached_file_matcher.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/paperclip/matchers/have_attached_file_matcher.rb b/lib/paperclip/matchers/have_attached_file_matcher.rb index da0dd8b19..70348d9fd 100644 --- a/lib/paperclip/matchers/have_attached_file_matcher.rb +++ b/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}?")