removed instances of locales in current_user and user

This commit is contained in:
Justine Arreche 2014-01-14 14:01:40 -05:00
parent 35e7fc4f55
commit f6491297c1
2 changed files with 1 additions and 8 deletions

View File

@ -12,6 +12,4 @@ Travis.CurrentUserController = Em.ObjectController.extend
if (user = @get('content')) && user.get('isSyncing') && !user.get('syncedAt')
Ember.run.scheduleOnce 'routerTransitions', this, ->
@container.lookup('router:main').send('renderFirstSync')
).observes('isSyncing', 'content')
updateLocale: delegate('updateLocale', to: 'content')
).observes('isSyncing', 'content')

View File

@ -6,7 +6,6 @@ require 'travis/model'
email: Ember.attr('string')
login: Ember.attr('string')
token: Ember.attr('string')
locale: Ember.attr('string')
gravatarId: Ember.attr('string')
isSyncing: Ember.attr('boolean')
syncedAt: Ember.attr('string')
@ -59,10 +58,6 @@ require 'travis/model'
permissions
).property()
updateLocale: (locale) ->
@save()
Travis.setLocale(locale)
type: (->
'user'
).property()