lib/mailkick.rb in mailkick-0.4.1 vs lib/mailkick.rb in mailkick-0.4.2
- old
+ new
@@ -1,17 +1,21 @@
# dependencies
-require "set"
require "active_support"
+# stdlib
+require "set"
+
# modules
require "mailkick/model"
require "mailkick/service"
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"
# integrations
require "mailkick/engine" if defined?(Rails)
@@ -100,9 +104,13 @@
raise ArgumentError, "Missing email" unless email
user ||= Mailkick.user_method.call(email) if Mailkick.user_method
message_verifier.generate([email, user.try(:id), user.try(:class).try(:name), list])
end
+end
+
+ActiveSupport.on_load :action_mailer do
+ helper Mailkick::UrlHelper
end
ActiveSupport.on_load(:active_record) do
extend Mailkick::Model
end