summaryrefslogtreecommitdiffstats
path: root/lib/sms_notifier.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sms_notifier.rb')
-rw-r--r--lib/sms_notifier.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sms_notifier.rb b/lib/sms_notifier.rb
index 1dff814..5d960c6 100644
--- a/lib/sms_notifier.rb
+++ b/lib/sms_notifier.rb
@@ -22,13 +22,11 @@ require 'yaml'
class SmsNotifier < ActionMailer::Base
@config = YAML::load(File.open("#{RAILS_ROOT}/config/sms_fu.yml"))
- @@from_address = @config['config']['from_address']
- cattr_accessor :from_address
- def sms_message(recipient, message)
+ def sms_message(recipient, message, sender_email)
content_type "text/plain"
recipients recipient
- from from_address
+ from sender_email
body['message'] = message
end