Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kazuhiko Shiozaki
gitlab-ce
Commits
bed29940
Commit
bed29940
authored
Oct 15, 2015
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Rubocop styling issues
parent
e5925d07
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
app/models/note.rb
app/models/note.rb
+1
-1
config/initializers/rack_lineprof.rb
config/initializers/rack_lineprof.rb
+4
-4
No files found.
app/models/note.rb
View file @
bed29940
...
@@ -62,7 +62,7 @@ class Note < ActiveRecord::Base
...
@@ -62,7 +62,7 @@ class Note < ActiveRecord::Base
scope
:with_associations
,
->
do
scope
:with_associations
,
->
do
includes
(
:author
,
:noteable
,
:updated_by
,
includes
(
:author
,
:noteable
,
:updated_by
,
project:
[
:project_members
,
{
group:
[
:group_members
]
}])
project:
[
:project_members
,
{
group:
[
:group_members
]
}])
end
end
serialize
:st_diff
serialize
:st_diff
...
...
config/initializers/rack_lineprof.rb
View file @
bed29940
...
@@ -9,10 +9,10 @@ if Rails.env.development? and RUBY_ENGINE == 'ruby' and ENV['ENABLE_LINEPROF']
...
@@ -9,10 +9,10 @@ if Rails.env.development? and RUBY_ENGINE == 'ruby' and ENV['ENABLE_LINEPROF']
class
Sample
<
Rack
::
Lineprof
::
Sample
.
superclass
class
Sample
<
Rack
::
Lineprof
::
Sample
.
superclass
def
format
(
*
)
def
format
(
*
)
formatted
=
if
level
==
CONTEXT
formatted
=
if
level
==
CONTEXT
sprintf
" | % 3i %s"
,
line
,
code
sprintf
" | % 3i %s"
,
line
,
code
else
else
sprintf
"% 8.1fms %5i | % 3i %s"
,
ms
,
calls
,
line
,
code
sprintf
"% 8.1fms %5i | % 3i %s"
,
ms
,
calls
,
line
,
code
end
end
case
level
case
level
when
CRITICAL
when
CRITICAL
...
...
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