Skip to content

Commit fd145d2

Browse files
author
Michael C. Beck
committed
moved default key into constant
1 parent adf6d1f commit fd145d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/google/api_client/auth/storages/redis_store.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ module Google
1818
class APIClient
1919
class RedisStore
2020

21+
DEFAULT_REDIS_CREDENTIALS_KEY = "google_api_credentials"
22+
2123
attr_accessor :redis
2224

2325
##
@@ -37,7 +39,7 @@ def load_credentials
3739
end
3840

3941
def redis_credentials_key
40-
@redis_credentials_key || "google_api_credentials"
42+
@redis_credentials_key || DEFAULT_REDIS_CREDENTIALS_KEY
4143
end
4244

4345
##

0 commit comments

Comments
 (0)