lib/action_texter/delivery_methods.rb in action-texter-0.2.0.pre vs lib/action_texter/delivery_methods.rb in action-texter-0.2.1.pre
- old
+ new
@@ -19,24 +19,24 @@
self.delivery_methods = {}.freeze
# add_delivery_method :file, ActionTexter::FileDelivery,
#:location => defined?(Rails.root) ? "#{Rails.root}/tmp/texts" : "#{Dir.tmpdir}/texts"
- add_delivery_method :test, ActionTexter::Provider::TestMessage::Delivery
- add_delivery_method :messagebird, ActionTexter::Provider::Messagebird::Delivery, { endpoint: 'https://rest.messagebird.com', path: '/messages' }
- add_delivery_method :mail, ActionTexter::Provider::Mail::Delivery, { charset: 'utf8' }
+ add_delivery_method :test, ActionTexter::TestMessage
+ add_delivery_method :messagebird, ActionTexter::Messagebird::Delivery, { endpoint: 'https://rest.messagebird.com', path: '/messages' }
+ add_delivery_method :mail, ActionTexter::Mail::Delivery, { charset: 'utf8' }
# add_delivery_method :twilio, ActionTexter::TwilioDelivery
# add_delivery_method :whitelist_proxy, ActionTexter::WhitelistProxyDelivery
end
end
module ClassMethods
extend Forwardable
cattr_accessor :delivery_methods, :delivery_method
# attr_accessor
# Provides a list of SMS messages that have been delivered by ActionTexter::TestDelivery
- delegate deliveries: ActionTexter::Provider::TestMessage::Delivery
- delegate :deliveries= => ActionTexter::Provider::TestMessage::Delivery
+ delegate deliveries: ActionTexter::TestMessage
+ delegate :deliveries= => ActionTexter::TestMessage
# Adds a new delivery method through the given class using the given symbol
# as alias and the default options supplied:
#
# Example: