Commit 3669458c by lanrion

autoload adapter

parent 0cb8b8df
......@@ -2,12 +2,16 @@ require "rest-client"
require "multi_json"
require "weixin_authorize/config"
require "weixin_authorize/error_handler"
require "weixin_authorize/adapter"
require "weixin_authorize/api"
require "weixin_authorize/client"
module WeixinAuthorize
# Storage
autoload(:Storage, "weixin_authorize/adapter/storage")
autoload(:ClientStorage, "weixin_authorize/adapter/client_storage")
autoload(:RedisStorage, "weixin_authorize/adapter/redis_storage")
OK_MSG = "ok".freeze
OK_CODE = 0.freeze
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment