sghael/speedy_c2dm — Issue #3: uninitialized constant Net
Author: chrisstewart
Created: 2011-11-16 16:31:36+00:00
State: open

After upgrading to 1.0.1, I'm seeing an error when calling send_notification.

/config/initializers/speedy_c2dm.rb

C2DM_API_EMAIL = "c2dmemail"
C2DM_API_PASSWORD = "pwd"

SpeedyC2DM::API.set_account(C2DM_API_EMAIL, C2DM_API_PASSWORD)

/app/controllers/blah_controller.rb

# With options set up as before.
response = SpeedyC2DM::API.send_notification(options)

This line is failing with "NameError (uninitialized constant Net):" in the log.