Skip to content

Commit

Permalink
Try API first to fix #165 problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Mar 13, 2017
1 parent 5bca61c commit 386bfe6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/action_controller/wechat_responder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ def load_controller_wechat(account, opts = {})
end
end

if defined? Base
class << Base
if defined? API
class << API
include WechatResponder
end
elsif defined? API
class << API
elsif defined? Base
class << Base
include WechatResponder
end
end
Expand Down

0 comments on commit 386bfe6

Please sign in to comment.