Files
canine/app/controllers/projects/base_controller.rb
2025-08-30 23:05:18 -07:00

15 lines
351 B
Ruby

class Projects::BaseController < ApplicationController
include ProjectsHelper
before_action :set_project
def active_connection
@_active_connection ||= K8::Connection.new(@project, current_user)
end
helper_method :active_connection
private
def set_project
@project = current_account.projects.find(params[:project_id])
end
end