RailsCasts Pro episodes are now free!

Learn more or hide this

DamirSvrtan's Profile

GitHub User: DamirSvrtan

Comments by

Avatar

just modify your codeline

user.oauth_expires_at = Time.at(auth.credentials.expires_at)

also to a single line:

user.oauth_expires_at = Time.at(auth.credentials.expires_at) unless auth.credentials.expires_at.nil?

@cbmeeks thank you!