Added has_many assoziations for creator and cashier to jobs, fixed all views according to that changes. Implemented allocation of roles infos when status changes in job model.
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<%= highlight user.email, [params.dig(:q, :firstname_or_lastname_or_email_cont).to_s, params.dig(:q, :email_start).to_s] %>
|
||||
</td>
|
||||
<td class="p-2 py-3 text-right">
|
||||
<%= user.jobs_as_costumer.where.not(status: :canceled).size %>
|
||||
<%= user.created_jobs.not_canceled.size %>
|
||||
</td>
|
||||
<td class="p-2 py-3 text-center">
|
||||
<%= l user.created_at.localtime.to_date %>
|
||||
|
||||
Reference in New Issue
Block a user