call super instead of copying the code.

This commit is contained in:
Benjamin Neff 2016-06-26 21:29:22 +02:00
parent 9b090a3950
commit 7cf7a0af5b

View file

@ -39,7 +39,7 @@ module DiasporaFederation
# @param [Nokogiri::XML::Element] root_node xml nodes
# @return [Entity] instance
private_class_method def self.populate_entity(root_node)
new(entity_data(root_node)).tap(&:fetch_root)
super(root_node).tap(&:fetch_root)
end
end
end