lib/generators/dry_crud/templates/app/controllers/list_controller.rb
# Uses the parent entry (if any) to constrain the model scope.
Uses the parent entry (if any) to constrain the model scope.
Uses the parent entry ( if any ) to constrain the model scope .
def model_scope_with_nesting
      if parent.present?
        parent_scope
      else
        model_scope_without_nesting
      end
    end
def model_scope_with_nesting if parent . present? parent_scope else model_scope_without_nesting end end
Uses the parent entry (if any) to constrain the model scope.
Uses the parent entry ( if any ) to constrain the model scope .