lib/ahoy_email.rb in ahoy_email-0.3.2 vs lib/ahoy_email.rb in ahoy_email-0.4.0

- old
+ new

@@ -2,18 +2,18 @@ require "action_mailer" require "rails" require "nokogiri" require "addressable/uri" require "openssl" -require "safely_block" +require "safely/core" require "ahoy_email/processor" require "ahoy_email/interceptor" require "ahoy_email/mailer" require "ahoy_email/engine" module AhoyEmail - mattr_accessor :secret_token, :options, :subscribers + mattr_accessor :secret_token, :options, :subscribers, :belongs_to self.options = { message: true, open: true, click: true, @@ -27,9 +27,11 @@ mailer: proc { |message, mailer| "#{mailer.class.name}##{mailer.action_name}" }, url_options: {} } self.subscribers = [] + + self.belongs_to = {} def self.track(options) self.options = self.options.merge(options) end