lib/mailkick.rb in mailkick-1.1.1 vs lib/mailkick.rb in mailkick-1.1.2
- old
+ new
@@ -4,26 +4,26 @@
# stdlib
require "json"
require "set"
# modules
-require "mailkick/legacy"
-require "mailkick/model"
-require "mailkick/serializer"
-require "mailkick/service"
-require "mailkick/service/aws_ses"
-require "mailkick/service/mailchimp"
-require "mailkick/service/mailgun"
-require "mailkick/service/mandrill"
-require "mailkick/service/sendgrid"
-require "mailkick/service/sendgrid_v2"
-require "mailkick/service/postmark"
-require "mailkick/url_helper"
-require "mailkick/version"
+require_relative "mailkick/legacy"
+require_relative "mailkick/model"
+require_relative "mailkick/serializer"
+require_relative "mailkick/service"
+require_relative "mailkick/service/aws_ses"
+require_relative "mailkick/service/mailchimp"
+require_relative "mailkick/service/mailgun"
+require_relative "mailkick/service/mandrill"
+require_relative "mailkick/service/sendgrid"
+require_relative "mailkick/service/sendgrid_v2"
+require_relative "mailkick/service/postmark"
+require_relative "mailkick/url_helper"
+require_relative "mailkick/version"
# integrations
-require "mailkick/engine" if defined?(Rails)
+require_relative "mailkick/engine" if defined?(Rails)
module Mailkick
mattr_accessor :services, :mount, :process_opt_outs_method
mattr_reader :secret_token
mattr_writer :message_verifier
@@ -56,10 +56,10 @@
message_verifier.generate([nil, subscriber.id, subscriber.class.name, list])
end
end
-ActiveSupport.on_load :action_mailer do
+ActiveSupport.on_load(:action_mailer) do
helper Mailkick::UrlHelper
end
ActiveSupport.on_load(:active_record) do
extend Mailkick::Model