lib/pagarme/object.rb in pagarme-2.1.3 vs lib/pagarme/object.rb in pagarme-2.1.4
- old
+ new
@@ -89,10 +89,10 @@
attribute_name = name[0...-1]
return self[attribute_name] = args[0]
end
if args.size == 0
- return self[name]
+ return self[name] || self[name.to_sym]
end
end
if attributes.respond_to? name
return attributes.public_send name, *args, &block