Skip to content

Commit

Permalink
convert method to symbol before looking it up
Browse files Browse the repository at this point in the history
  • Loading branch information
lucijan authored and scotchi committed Oct 10, 2012
1 parent f197bbc commit 448b28c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Ruby/lib/directededge/item.rb
Expand Up @@ -131,8 +131,8 @@ def to_xml(data_method, with_header = true)
XML.generate(values, with_header)
end

def method_missing(name, *args, &block)
@data.include?(name) ? @data[name] : super(name, *args, &block)
def method_missing(method, *args, &block)
@data.include?(method.to_sym) ? @data[method.to_sym] : super
end
end
end

0 comments on commit 448b28c

Please sign in to comment.