Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Resource#valid_attribute? for ruby 1.8

  • Loading branch information...
commit f6d97a217afe62ca584f9247d4e1bc99f8dbb968 1 parent 852f16a
@bru bru authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gocardless/resource.rb
View
2  lib/gocardless/resource.rb
@@ -66,7 +66,7 @@ def method_missing(method, *args)
end
def valid_attribute?(attr)
- instance_variables.include? "@#{attr}".to_sym
+ instance_variables.map(&:to_s).include? "@#{attr}"
end
def get_attribute(attr)
Please sign in to comment.
Something went wrong with that request. Please try again.