Use ENV.config instead of injected config
This commit is contained in:
parent
c8211520f2
commit
98892425bb
|
@ -1,6 +1,7 @@
|
||||||
require 'routes/route'
|
require 'routes/route'
|
||||||
|
|
||||||
TravisRoute = Travis.Route
|
TravisRoute = Travis.Route
|
||||||
|
config = ENV.config
|
||||||
|
|
||||||
Route = TravisRoute.extend
|
Route = TravisRoute.extend
|
||||||
renderTemplate: ->
|
renderTemplate: ->
|
||||||
|
@ -17,7 +18,7 @@ Route = TravisRoute.extend
|
||||||
|
|
||||||
activate: ->
|
activate: ->
|
||||||
# subscribe to pusher only if we're at a main route
|
# subscribe to pusher only if we're at a main route
|
||||||
if @config.pusher.channels
|
if config.pusher.channels
|
||||||
@get('pusher').subscribeAll(@config.pusher.channels)
|
@get('pusher').subscribeAll(config.pusher.channels)
|
||||||
|
|
||||||
Travis.MainRoute = Route
|
Travis.MainRoute = Route
|
||||||
|
|
Loading…
Reference in New Issue
Block a user