Sha256: b52f0e331341c8d042abe82694fec0e2ab2c9d71d00523ed97d20429db4556ee

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

module EmailTracker
  class Railtie < Rails::Railtie
    initializer "email_tracker.action_controller" do
      ActiveSupport.on_load(:action_controller) do
        include EmailTracker::Tracker
      end
    end

    initializer "email_tracker.routes" do
      Rails.application.routes.append do
        get 'email_open_tracker/:token', to: 'email_tracker/email_opens#track_open', as: :email_open_tracker
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
custom_email_tracker-0.1.0 lib/email_tracker/railtie.rb