Rubocop style update with some files
This commit is contained in:
@@ -65,7 +65,7 @@ class JobsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def broadcast_update_job
|
def broadcast_update_job
|
||||||
Turbo::StreamsChannel.broadcast_replace_later_to "jobs", target: @job, partial: "jobs/job_tr", locals: { job: @job}
|
Turbo::StreamsChannel.broadcast_replace_later_to "jobs", target: @job, partial: "jobs/job_tr", locals: { job: @job }
|
||||||
if @status_changed
|
if @status_changed
|
||||||
Turbo::StreamsChannel.broadcast_remove_to "operator_jobs", target: @job
|
Turbo::StreamsChannel.broadcast_remove_to "operator_jobs", target: @job
|
||||||
broadcast_update_status_cards_and_start_next_job_button
|
broadcast_update_status_cards_and_start_next_job_button
|
||||||
|
|||||||
@@ -14,6 +14,11 @@ class Operator::JobsController < ApplicationController
|
|||||||
@job = Job.new
|
@job = Job.new
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def egal
|
||||||
|
asdf
|
||||||
|
ddfd
|
||||||
|
end
|
||||||
|
|
||||||
# GET /jobs/1/edit
|
# GET /jobs/1/edit
|
||||||
def edit; end
|
def edit; end
|
||||||
|
|
||||||
@@ -131,7 +136,7 @@ class Operator::JobsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def broadcast_update_job
|
def broadcast_update_job
|
||||||
Turbo::StreamsChannel.broadcast_replace_later_to "jobs", target: @job, partial: "jobs/job_tr", locals: { job: @job}
|
Turbo::StreamsChannel.broadcast_replace_later_to "jobs", target: @job, partial: "jobs/job_tr", locals: { job: @job }
|
||||||
if @status_changed
|
if @status_changed
|
||||||
Turbo::StreamsChannel.broadcast_remove_to "operator_jobs", target: @job
|
Turbo::StreamsChannel.broadcast_remove_to "operator_jobs", target: @job
|
||||||
broadcast_update_status_cards_and_start_next_job_button
|
broadcast_update_status_cards_and_start_next_job_button
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
class User < ApplicationRecord
|
class User < ApplicationRecord
|
||||||
has_many :jobs_as_costumer, foreign_key: :costumer_id, class_name: 'Job'
|
has_many :jobs_as_costumer, foreign_key: :costumer_id, class_name: "Job"
|
||||||
has_many :jobs_as_operator, foreign_key: :operator_id, class_name: 'Job'
|
has_many :jobs_as_operator, foreign_key: :operator_id, class_name: "Job"
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user