In common.js. If you want to use AMD, you’ll need to slightly change stuff.
-
Copy
controllers/session_controller
to your app and init session controller in application class (new SessionController()
). -
Copy all included
lib
,models
andviews
to your directories. -
Add providers to your
SessionController
, like this:class SessionController extends Controller @serviceProviders = facebook: new Facebook()
Example application with the addon: https://github.com/paulmillr/ostio.