Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `send_sms' for SMSNotifier:Class #9

Open
dsaronin opened this issue Sep 18, 2011 · 2 comments
Open

undefined method `send_sms' for SMSNotifier:Class #9

dsaronin opened this issue Sep 18, 2011 · 2 comments

Comments

@dsaronin
Copy link

Even tho I've set up: sms_fu = SMSFu::Client.configure(:delivery => :action_mailer)
sms_notifier.rb isn't loaded so Rails cannot find send_sms.
It seems to me that this gem is not properly set up per normal gem standards?

@dsaronin
Copy link
Author

actually, the call is:
SMSNotifier.send_sms(email, message, from)
implying that it's a class method .. so in sms_notifier.rb, shouldn't send_sms be defined as a class method?
but if I do that, then mail is undefined.

@Ritesh-Kumar
Copy link

I also faced this issue, to make this working I did slight changes
$SMS_FU = SMSFu::Client.configure(:delivery => :action_mailer)

and then
$SMS_FU.deliver(@sms.sms_to, @sms.carrier, message)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants