Sha256: 579cf14a2404f0f034639a8496e91582179eab1db1f2d6884ca7106f8ff6a309

Contents?: true

Size: 693 Bytes

Versions: 3

Compression:

Stored size: 693 Bytes

Contents

class <%= @controller_name %>Controller < ApplicationController
  include Mandrill::Rails::WebHookProcessor

  # To completely ignore unhandled events (not even logging), uncomment this line
  # ignore_unhandled_events!

  # If you want unhandled events to raise a hard exception, uncomment this line
  # unhandled_events_raise_exceptions!

  # To enable authentication, uncomment this line and set your API key.
  # It is recommended you pull your API keys from environment settings,
  # or use some other means to avoid committing the API keys in your source code.
  # authenticate_with_mandrill_keys! 'YOUR_MANDRILL_WEBHOOK_KEY'

  def handle_inbound(event_payload)
    head(:ok)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mandrill-rails-1.5.0 lib/generators/templates/controller.rb
mandrill-rails-1.4.1 lib/generators/templates/controller.rb
mandrill-rails-1.4.0 lib/generators/templates/controller.rb