Skip to content

Commit

Permalink
fixed rails api mode error
Browse files Browse the repository at this point in the history
  • Loading branch information
sandect authored Feb 27, 2017
1 parent 8f75223 commit 607c88a
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

1 comment on commit 607c88a

@Eric-Guo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以解决 #164么?会的话欢迎PR。。。

Please sign in to comment.