Commit 93f0a097 by Thanh Hung Pham

Fix comment - remove method touch

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