Sha256: 01c03b2c02cc03a3fd3df6f50bb0970ecd5a2a2d237fd36b882d97e818849650

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 Bytes

Contents

ActiveNotifier.configure do |config|
  # Set alias const for ActiveNotifier
  # Default: :Notifier
  # config.const_name = :Notifier
  #
  # Set message Adapter
  # Default: :dingtalk
  # config.adapter = :dingtalk
  #
  # The webhook tokens of channel
  # config.channel_tokens = {
  #   default: "dingtalk_token_xxxxxxxxxxxxxxxxx",
  #   order:   "dingtalk_token_for_order_xxxxxxx",
  # }
  #
  # The template home directory
  config.template_home = Rails.root.join("app", "views", "active_notifier")
  #
  # The priority type for message, if notifier execute without type option and there are multiple valid types,
  # then ActiveNotifier will use the template with this type first
  # Default: :markdown
  # config.priority_type = :markdown
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_notifier-0.4.2 lib/generators/active_notifier/templates/active_notifier.rb