{"action":"closed","issue":{"url":"https://api.github.com/repos/lanrion/weixin_rails_middleware/issues/46","labels_url":"https://api.github.com/repos/lanrion/weixin_rails_middleware/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/lanrion/weixin_rails_middleware/issues/46/comments","events_url":"https://api.github.com/repos/lanrion/weixin_rails_middleware/issues/46/events","html_url":"https://github.com/lanrion/weixin_rails_middleware/issues/46","id":115492952,"number":46,"title":"如何在weixin_controller_decorator.rb文件以外使用reply方法","user":{"login":"chenzhong","id":1441745,"avatar_url":"https://avatars.githubusercontent.com/u/1441745?v=3","gravatar_id":"","url":"https://api.github.com/users/chenzhong","html_url":"https://github.com/chenzhong","followers_url":"https://api.github.com/users/chenzhong/followers","following_url":"https://api.github.com/users/chenzhong/following{/other_user}","gists_url":"https://api.github.com/users/chenzhong/gists{/gist_id}","starred_url":"https://api.github.com/users/chenzhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenzhong/subscriptions","organizations_url":"https://api.github.com/users/chenzhong/orgs","repos_url":"https://api.github.com/users/chenzhong/repos","events_url":"https://api.github.com/users/chenzhong/events{/privacy}","received_events_url":"https://api.github.com/users/chenzhong/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-06T12:03:24Z","updated_at":"2015-11-15T05:58:33Z","closed_at":"2015-11-15T05:58:33Z","body":"需要在weixin_controller_decorator.rb以外使用reply_news_message(articles)方法，是否只需要\r\n\r\n``include WeixinRailsMiddleware::ReplyWeixinMessageHelper`` 即可？\r\n\r\n目前在 一个class中 include过，但还是找不到该方法\r\n\r\n\r\n```\r\n\r\nclass Notify\r\n\r\n  include WeixinRailsMiddleware::ReplyWeixinMessageHelper\r\n\r\n  def self.send_shop_message(articles)\r\n    reply_news_message(articles)\r\n  end\r\n\r\n\r\nend\r\n```"}}