app/helpers/para/admin/components_helper.rb in para-0.8.2.3 vs app/helpers/para/admin/components_helper.rb in para-0.8.3

- old
+ new

@@ -16,7 +16,12 @@ section.components.each do |component| components << component if can?(:read, component) end end.sort_by(&:name) end + + def show_component?(component) + config = Para.components.component_configuration_for(component.identifier) + !config.shown_if || instance_exec(&config.shown_if) + end end end