lib/representable/xml/collection.rb in representable-1.8.5 vs lib/representable/xml/collection.rb in representable-2.0.0.rc1
- old
+ new
@@ -1,13 +1,11 @@
module Representable::XML
module Collection
include Representable::XML
def self.included(base)
- base.class_eval do
- include Representable::Hash::Collection
- include Methods
- end
+ base.send :include, Representable::Hash::Collection
+ base.send :include, Methods
end
module Methods
def update_properties_from(doc, *args)
super(doc.search("./*"), *args) # pass the list of collection items to Hash::Collection#update_properties_from.