Method: Model::App#template_ids

Defined in:
app/models/wechat/model/app.rb

#template_ids(notifiable_type, *code) ⇒ Object



190
191
192
193
# File 'app/models/wechat/model/app.rb', line 190

def template_ids(notifiable_type, *code)
  ids = TemplateConfig.where(notifiable_type: notifiable_type, code: code).pluck(:id)
  templates.where(template_config_id: ids).pluck(:template_id)
end