Files
eminuxCRM/app/controllers/pipeline_controller.rb
T
eminuxandCursor c4e5f289cf
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled
Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 23:01:48 +02:00

13 lines
429 B
Ruby

class PipelineController < ApplicationController
before_action :require_current_project!
def show
@page_title = "Pipeline"
@opportunities_by_stage = Catalog::PIPELINE_ORDER.index_with do |stage|
opportunities_for_current_project.where(pipeline_stage: stage)
.includes(:organization, :assigned_user, :tasks, organization: :contacts)
.order(updated_at: :desc)
end
end
end