Commit ef9b78c1 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Initialize User class on the view

parent eed8b179
...@@ -107,8 +107,6 @@ class Dispatcher ...@@ -107,8 +107,6 @@ class Dispatcher
new ProjectFork() new ProjectFork()
when 'projects:artifacts:browse' when 'projects:artifacts:browse'
new BuildArtifacts() new BuildArtifacts()
when 'users:show'
new User()
switch path.first() switch path.first()
when 'admin' when 'admin'
......
...@@ -107,3 +107,10 @@ ...@@ -107,3 +107,10 @@
.loading-status .loading-status
= spinner = spinner
:javascript
var userProfile;
userProfile = new User({
action: "#{controller.action_name}"
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment