ryanb/private_pub — pull request #51 by vollnhals (2012-04-06 23:59:07+00:00)
Title: private_pub.js changes: only load faye.js if Faye object is not present and use module pattern to prevent pollution of global namespace

Allow loading of faye-browser.js directly through asset pipeline, so that only one request is made for .js files in production mode. This also allows easy serving of faye-browser.js through nginx or apache instead of thin.

Also change creation of PrivatePub variable to use module pattern. There is no need to export the buildPrivatePub function into the global namespace.