lib/ruby-box/item.rb in ruby-box-1.3.0 vs lib/ruby-box/item.rb in ruby-box-1.3.1

- old
+ new

@@ -71,10 +71,10 @@ end protected def self.factory(session, entry) - type = entry['type'].capitalize.to_sym + type = entry['type'] ? entry['type'].capitalize.to_sym : nil if RubyBox.constants.include? type RubyBox.const_get(type).new(session, entry) else entry end