smith2015/04/25 00:23失礼しました。自己解決できました。 before_action :last_access_in_at #User ラストアクセス def last_access_in_at if user_signed_in? && Time.now - 480 > current_user.last_access_in_at current_user.update(last_access_in_at: Time.now) end end
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/04/25 00:23