diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 19:19:05 +0300 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 19:19:05 +0300 |
commit | ef9b78c1e3ab8f14381ca6382aeea34401568aa8 (patch) | |
tree | 7a9db26f745c61595465eca6f6fc1e2cde839e9b /app/views/users | |
parent | eed8b179b686fa98256a79e5ae8d2b5967bc5ecd (diff) |
Initialize User class on the view
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/show.html.haml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index b55989281e6..12cd61f3578 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -107,3 +107,10 @@ .loading-status = spinner + +:javascript + var userProfile; + + userProfile = new User({ + action: "#{controller.action_name}" + }); |