Method: Model::Scene#init_response
- Defined in:
- app/models/wechat/model/scene.rb
#init_response ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'app/models/wechat/model/scene.rb', line 29 def init_response res = response || build_response res.effective_type = 'Wechat::TextReply' res.request_types = [ 'Wechat::SubscribeRequest', 'Wechat::ScanRequest' ] res.save res end |