RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: DamirSvrtan
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!
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!