Initialize User class on the view

This commit is contained in:
Alfredo Sumaran 2016-03-01 11:19:05 -05:00
parent eed8b179b6
commit ef9b78c1e3
2 changed files with 7 additions and 2 deletions

View file

@ -107,8 +107,6 @@ class Dispatcher
new ProjectFork()
when 'projects:artifacts:browse'
new BuildArtifacts()
when 'users:show'
new User()
switch path.first()
when 'admin'

View file

@ -107,3 +107,10 @@
.loading-status
= spinner
:javascript
var userProfile;
userProfile = new User({
action: "#{controller.action_name}"
});