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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
7839aa55
Commit
7839aa55
authored
Dec 01, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Arel to avoid MySQL triple quoting
parent
5747b0d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
config/initializers/ar_monkey_patch.rb
config/initializers/ar_monkey_patch.rb
+1
-2
No files found.
config/initializers/ar_monkey_patch.rb
View file @
7839aa55
...
@@ -59,8 +59,7 @@ module ActiveRecord
...
@@ -59,8 +59,7 @@ module ActiveRecord
return
super
unless
locking_enabled?
return
super
unless
locking_enabled?
column_name
=
self
.
class
.
locking_column
column_name
=
self
.
class
.
locking_column
table_name
=
self
.
class
.
quoted_table_name
super
.
where
(
self
.
class
.
arel_table
[
column_name
].
eq
(
self
[
column_name
]))
super
.
where
(
"
#{
table_name
}
.
#{
column_name
}
"
=>
self
[
column_name
])
end
end
end
end
...
...
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