app/controllers/concepts/hierarchical_controller.rb in iqvoc-4.0.9 vs app/controllers/concepts/hierarchical_controller.rb in iqvoc-4.1.0

- old
+ new

@@ -17,14 +17,11 @@ class Concepts::HierarchicalController < ConceptsController def index authorize! :read, Iqvoc::Concept.base_class - scope = if params[:published] == '0' - Iqvoc::Concept.base_class.editor_selectable - else - Iqvoc::Concept.base_class.published - end + scope = Iqvoc::Concept.base_class + scope = params[:published] == "0" ? scope.editor_selectable : scope.published #collect only the not expired concepts scope = scope.not_expired # if params[:broader] is given, the action is handling the reversed tree