lib/activeresource-response/response_method.rb in activeresource-response-0.1.0 vs lib/activeresource-response/response_method.rb in activeresource-response-0.2.0

- old
+ new

@@ -7,10 +7,10 @@ end module ClassMethods def add_response_method(method_name = :http_response) - remove_response_method if methods.include?(:find_without_http_response) + remove_response_method if methods.map(&:to_sym).include?(:find_without_http_response) [:find, :get].each do |method| instance_eval <<-EOS alias #{method}_without_http_response #{method} def #{method}(*arguments) result = #{method}_without_http_response(*arguments)