ryanb / private_pub

Handle pub/sub messaging through private channels in Rails using Faye.
MIT License
863 stars 226 forks source link

Rails 3.2.0rc2 fixes #26

Closed jadencarver closed 12 years ago

jadencarver commented 12 years ago

I had some issues getting your plugin to run in the most recent version of rails, but seem to have been able to fix it using these changes.

alistairholt commented 12 years ago

I can confirm that 0556b2b is a required change for Rails 3.2.0 as a uninitialized constant ActiveSupport::SecureRandom (NameError) error is raised when you try to run rails g private_pub:install.

ryanb commented 12 years ago

Thanks for this fix. I cherry picked the SecureRandom fix and released version 1.0.1 with this. The reason you were getting an error with the YAML loading is because the config file was only partially generated since it had an exception. Try removing the config/private_pub.yml file and running rails g private_pub:install again if you are getting that error.