lib/representable/binding.rb in representable-1.7.3 vs lib/representable/binding.rb in representable-1.7.4
- old
+ new
@@ -126,10 +126,10 @@
item_class = class_from(fragment) or return fragment
item_class.new
end
def class_from(fragment, *args)
- call_proc_for(sought_type, fragment)
+ call_proc_for(deserialize_class, fragment)
end
def instance_for(fragment, *args)
return unless options[:instance]
call_proc_for(options[:instance], fragment) or get