Initialize User class on the view
This commit is contained in:
parent
eed8b179b6
commit
ef9b78c1e3
2 changed files with 7 additions and 2 deletions
|
@ -107,8 +107,6 @@ class Dispatcher
|
|||
new ProjectFork()
|
||||
when 'projects:artifacts:browse'
|
||||
new BuildArtifacts()
|
||||
when 'users:show'
|
||||
new User()
|
||||
|
||||
switch path.first()
|
||||
when 'admin'
|
||||
|
|
|
@ -107,3 +107,10 @@
|
|||
|
||||
.loading-status
|
||||
= spinner
|
||||
|
||||
:javascript
|
||||
var userProfile;
|
||||
|
||||
userProfile = new User({
|
||||
action: "#{controller.action_name}"
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue