lib/lanmao.rb in lanmao-0.8.0 vs lib/lanmao.rb in lanmao-0.9.1
- old
+ new
@@ -16,9 +16,10 @@
require "lanmao/extensions"
require "lanmao/sign/rsa"
require "lanmao/http/request"
require "lanmao/http/response"
+
# 自动加载所有 api
Dir["#{File.dirname(__FILE__)}/lanmao/api/**/*.rb"].each { |file| require file }
# 自动加载所有 form
Dir["#{File.dirname(__FILE__)}/lanmao/form/**/*.rb"].each { |file| require file }
# 自动加载所有 http error code