From 7cf7a0af5bec85bb039218e04fc33800c489ffbe Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 26 Jun 2016 21:29:22 +0200 Subject: [PATCH] call super instead of copying the code. --- lib/diaspora_federation/entities/reshare.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/diaspora_federation/entities/reshare.rb b/lib/diaspora_federation/entities/reshare.rb index ca359c8..b03fd92 100644 --- a/lib/diaspora_federation/entities/reshare.rb +++ b/lib/diaspora_federation/entities/reshare.rb @@ -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