mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-12 19:55:14 +02:00
9 lines
187 B
Ruby
9 lines
187 B
Ruby
class ProjectsController < ApplicationController
|
|||
before_action :require_login
|
|||
|
|||
def update
|
|||
project = Project.find(params[:id])
|
|||
project.update!(state: params[:state])
|
|||
end
|
|||
end
|