Commit 4be23420 by Thanh Hung Pham

Check data empty

parent 4cf18b19
...@@ -22,6 +22,7 @@ class AdminsController < ApplicationController ...@@ -22,6 +22,7 @@ class AdminsController < ApplicationController
@to_date_default = params[:to_date] if params[:to_date].present? @to_date_default = params[:to_date] if params[:to_date].present?
@data = Apply.search_email(@email).search_city(@city_id).search_city(@category_id).applied_at_between(@from_date_default, @to_date_default).order(:applied_at) @data = Apply.search_email(@email).search_city(@city_id).search_city(@category_id).applied_at_between(@from_date_default, @to_date_default).order(:applied_at)
return if @data.count.zero?
attributes_to_apply = %w[id applied_at] attributes_to_apply = %w[id applied_at]
attributes_to_job = %w[id name] attributes_to_job = %w[id name]
attributes_to_user = %w[id fullname cv_name email] attributes_to_user = %w[id fullname cv_name email]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment