call super instead of copying the code.
This commit is contained in:
parent
9b090a3950
commit
7cf7a0af5b
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ module DiasporaFederation
|
||||||
# @param [Nokogiri::XML::Element] root_node xml nodes
|
# @param [Nokogiri::XML::Element] root_node xml nodes
|
||||||
# @return [Entity] instance
|
# @return [Entity] instance
|
||||||
private_class_method def self.populate_entity(root_node)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue