Importa i prospect Calcio a 5 senza toccare la Pallavolo e filtra le organizzazioni per sport.
CI / scan_ruby (push) Failing after 15m50s
CI / scan_js (push) Successful in 18m7s
CI / lint (push) Failing after 12m1s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 11:07:43 +02:00
co-authored by Cursor
parent b5737a7ee7
commit e492c43bf8
7 changed files with 320 additions and 9 deletions
@@ -5,6 +5,7 @@ class OrganizationsController < ApplicationController
def index
@page_title = "Organizzazioni"
@sport_options = organizations_for_current_project.where.not(sport: [ nil, "" ]).distinct.order(:sport).pluck(:sport)
scope = organizations_for_current_project.includes(:assigned_user, :contacts, :opportunities, :tasks, :projects)
scope = scope.search(params[:q]) if params[:q].present?
scope = apply_filters(scope)