BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
11591573
Commit
11591573
authored
Jan 15, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7925 from cirosantilli/unused-arguments
Remove or prepend underscore _ to unused method arguments
parents
dbd54fad
6c65b91d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
registrations_controller.rb
app/controllers/registrations_controller.rb
+2
-2
tree_helper.rb
app/helpers/tree_helper.rb
+1
-1
_tree.html.haml
app/views/projects/tree/_tree.html.haml
+1
-1
No files found.
app/controllers/registrations_controller.rb
View file @
11591573
...
@@ -15,11 +15,11 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -15,11 +15,11 @@ class RegistrationsController < Devise::RegistrationsController
super
super
end
end
def
after_sign_up_path_for
(
resource
)
def
after_sign_up_path_for
(
_
resource
)
new_user_session_path
new_user_session_path
end
end
def
after_inactive_sign_up_path_for
(
resource
)
def
after_inactive_sign_up_path_for
(
_
resource
)
new_user_session_path
new_user_session_path
end
end
...
...
app/helpers/tree_helper.rb
View file @
11591573
...
@@ -108,7 +108,7 @@ module TreeHelper
...
@@ -108,7 +108,7 @@ module TreeHelper
end
end
end
end
def
up_dir_path
(
tree
)
def
up_dir_path
file
=
File
.
join
(
@path
,
".."
)
file
=
File
.
join
(
@path
,
".."
)
tree_join
(
@ref
,
file
)
tree_join
(
@ref
,
file
)
end
end
...
...
app/views/projects/tree/_tree.html.haml
View file @
11591573
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
-
if
@path
.
present?
-
if
@path
.
present?
%tr
.tree-item
%tr
.tree-item
%td
.tree-item-file-name
%td
.tree-item-file-name
=
link_to
".."
,
project_tree_path
(
@project
,
up_dir_path
(
tree
)
),
class:
'prepend-left-10'
=
link_to
".."
,
project_tree_path
(
@project
,
up_dir_path
),
class:
'prepend-left-10'
%td
%td
%td
.hidden-xs
%td
.hidden-xs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment