-
Notifications
You must be signed in to change notification settings - Fork 8
Autoloading of token store class #9
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently you need to manually require the token store class and assign it to FmRest.token_store= as the Ruby class object.
E.g.:
require "fmrest"
require "fmrest/token_store/redis"
FmRest.token_store = FmRest::TokenStore::RedisWhile we want to still allow the above example to work, it would be good if we could set the token store with a symbol and autoload it if it's one of the default token stores included with the gem. E.g.:
require "fmrest"
FmRest.token_store = :redis # this would automatically require fmrest/token_store/redis.rb and set the proper classReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request