Added Rubocop and initial config

This commit is contained in:
2025-07-10 15:30:00 +03:00
parent 864769e70a
commit 42d45853ff
8 changed files with 140 additions and 35 deletions
+5 -6
View File
@@ -1,3 +1,5 @@
# frozen_string_literal: true
class ProjectsController < ApplicationController
before_action :fetch_project!, only: %w[show edit update destroy]
@@ -5,8 +7,7 @@ class ProjectsController < ApplicationController
@projects = Project.all
end
def show
end
def show; end
def new
@project = Project.new
@@ -21,8 +22,7 @@ class ProjectsController < ApplicationController
end
end
def edit
end
def edit; end
def update
if @project.update(project_params)
@@ -32,8 +32,7 @@ class ProjectsController < ApplicationController
end
end
def destroy
end
def destroy; end
private