From 1646e8c36495680756304b23b7301dbda9cad07a Mon Sep 17 00:00:00 2001 From: Clemens Kofler Date: Tue, 2 Sep 2008 10:04:53 +0200 Subject: More symbols for send and respond_to?. Signed-off-by: Jeremy Kemper --- activeresource/lib/active_resource/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activeresource/lib') diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 9dc715b0fa..da9f6d6893 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -915,8 +915,8 @@ module ActiveResource alias_method :respond_to_without_attributes?, :respond_to? # A method to determine if an object responds to a message (e.g., a method call). In Active Resource, a Person object with a - # +name+ attribute can answer true to my_person.respond_to?("name"), my_person.respond_to?("name="), and - # my_person.respond_to?("name?"). + # +name+ attribute can answer true to my_person.respond_to?(:name), my_person.respond_to?(:name=), and + # my_person.respond_to?(:name?). def respond_to?(method, include_priv = false) method_name = method.to_s if attributes.nil? -- cgit v1.2.3