Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
80062a0026f4
Commit
80062a00
authored
Oct 04, 2012
by
Valeriy Sizov
Browse files
Minore code-style fixes
parent
9b8da7c1fc8f
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/models/group.rb
View file @
80062a00
...
...
@@ -23,7 +23,7 @@
delegate
:name
,
to: :owner
,
allow_nil:
true
,
prefix:
true
def
self
.
search
query
where
(
"name
like
:query OR code
like
:query"
,
query:
"%
#{
query
}
%"
)
where
(
"name
LIKE
:query OR code
LIKE
:query"
,
query:
"%
#{
query
}
%"
)
end
def
to_param
...
...
app/models/project.rb
View file @
80062a00
...
...
@@ -38,7 +38,7 @@
end
def
self
.
search
query
where
(
"name
like
:query OR code
like
:query OR path
like
:query"
,
query:
"%
#{
query
}
%"
)
where
(
"name
LIKE
:query OR code
LIKE
:query OR path
LIKE
:query"
,
query:
"%
#{
query
}
%"
)
end
def
self
.
create_by_user
(
params
,
user
)
...
...
@@ -127,7 +127,7 @@
end
def
commit_line_notes
(
commit
)
notes
.
where
(
noteable_id:
commit
.
id
,
noteable_type:
"Commit"
).
where
(
"line_code
is not null
"
)
notes
.
where
(
noteable_id:
commit
.
id
,
noteable_type:
"Commit"
).
where
(
"line_code
IS NOT NULL
"
)
end
def
public?
...
...
app/models/user.rb
View file @
80062a00
...
...
@@ -73,7 +73,7 @@
end
def
self
.
search
query
where
(
"name
like
:query
or
email
like
:query"
,
query:
"%
#{
query
}
%"
)
where
(
"name
LIKE
:query
OR
email
LIKE
:query"
,
query:
"%
#{
query
}
%"
)
end
end
...
...
app/roles/issue_commonality.rb
View file @
80062a00
...
...
@@ -19,7 +19,7 @@
scope
:opened
,
where
(
closed:
false
)
scope
:closed
,
where
(
closed:
true
)
scope
:of_group
,
->
(
group
)
{
where
(
project_id:
group
.
project_ids
)
}
scope
:assigned
,
lambda
{
|
u
|
where
(
assignee_id:
u
.
id
)}
scope
:assigned
,
->
(
u
)
{
where
(
assignee_id:
u
.
id
)}
delegate
:name
,
:email
,
...
...
Write
Preview
Supports
Markdown
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