lib/resend.rb in resend-0.2.1 vs lib/resend.rb in resend-0.3.0
- old
+ new
@@ -1,17 +1,19 @@
# frozen_string_literal: true
require "resend/version"
require "resend/client"
-require 'resend/railtie' if defined?(Rails) && defined?(ActionMailer)
+require "resend/railtie" if defined?(Rails) && defined?(ActionMailer)
+# Main Resend module
module Resend
class << self
- attr_accessor :api_key,
+ attr_accessor :api_key
+
def configure
yield self if block_given?
true
end
- alias_method :config, :configure
+ alias config configure
end
-end
\ No newline at end of file
+end