|
@ -70,7 +70,6 @@ class User < ActiveRecord::Base |
|
|
log_action_id: log_action.id, |
|
|
log_action_id: log_action.id, |
|
|
log_action_type: log_action.class.to_s) |
|
|
log_action_type: log_action.class.to_s) |
|
|
save |
|
|
save |
|
|
puts logs.inspect |
|
|
|
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
def checkout |
|
|
def checkout |
|
@ -80,6 +79,5 @@ class User < ActiveRecord::Base |
|
|
where("start_date = end_date").first |
|
|
where("start_date = end_date").first |
|
|
checked.end_date = Time.now |
|
|
checked.end_date = Time.now |
|
|
checked.save |
|
|
checked.save |
|
|
puts logs.inspect |
|
|
|
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|