nilbus / pinewood-derby

Pinewood derby status board & sensor driver
Other
17 stars 9 forks source link

Use the Rails 4 `console` block to run the Faye reactor #35

Closed joseph-ravenwolfe closed 10 years ago

joseph-ravenwolfe commented 10 years ago

Rails 4 provides a console hook that can be placed in config/application.rb to run any code necessary when the console has loaded.

This can be used to run the Faye reactor when the Rails console has booted instead of running it separately.