Permalink
Browse files

Fixed bug on creating a Reference with symbolized keys hash

  • Loading branch information...
krakatoa committed Feb 11, 2013
1 parent b5a4757 commit 8f1a1513a14ebe034348817e7de896130d4f475c
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/reference.rb
View
@@ -4,8 +4,8 @@ class Reference
attr_reader :class_name
def initialize(opts={})
- @object_uuid = opts["object_uuid"]
- @class_name = opts["class_name"]
+ @object_uuid = opts["object_uuid"] || opts[:object_uuid]
+ @class_name = opts["class_name"] || opts[:class_name]
end
def to_hash

0 comments on commit 8f1a151

Please sign in to comment.