app/models/skydrive/user.rb in lti_skydrive-0.1.0 vs app/models/skydrive/user.rb in lti_skydrive-0.1.1
- old
+ new
@@ -20,9 +20,9 @@
def cleanup_api_keys
api_keys.inactive.each(&:destroy)
end
def valid_skydrive_token?
- self.token && self.token.is_valid?
+ !self.token.nil? && self.token.is_valid?
end
end
-end
\ No newline at end of file
+end