lib/aptible/rails/controller.rb in aptible-rails-0.4.0 vs lib/aptible/rails/controller.rb in aptible-rails-0.4.1

- old
+ new

@@ -55,10 +55,10 @@ def service_token return unless session_token && session_token.session return @service_token if @service_token @service_token = cached_service_token(session_token) - if Fridge::AccessToken.new(service_token).valid? + if Fridge::AccessToken.new(@service_token).valid? @service_token else @service_token = cached_service_token(session_token, force: true) || session_token end