Commit 93f0a097 by Thanh Hung Pham

Fix comment - remove method touch

parent ba345db2
......@@ -6,7 +6,8 @@ class JobsController < ApplicationController
def show
@job = Job.find(params[:id])
@history = History.find_or_create_by(user: current_user, job: @job)
@history.touch(:updated_at)
@history.updated_at = Time.zone.now
@history.save
end
def apply
......
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