mirror of
https://github.com/czhu12/canine.git
synced 2026-01-05 19:20:09 -06:00
15 lines
351 B
Ruby
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
|