This patch is solution for https://www.aeolusproject.org/redmine/issues/3759 It removes elements from XML output conditionally. They can be rendered passing :with_data using :locals. Changes controllers' index actions to pass :with_data => false