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
67cf8846
Commit
67cf8846
authored
Mar 12, 2019
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make code fail when Rails gem is updated
parent
9c233a9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ee/app/models/geo/upload_registry.rb
ee/app/models/geo/upload_registry.rb
+5
-0
No files found.
ee/app/models/geo/upload_registry.rb
View file @
67cf8846
...
@@ -3,6 +3,11 @@
...
@@ -3,6 +3,11 @@
class
Geo::UploadRegistry
<
Geo
::
FileRegistry
class
Geo::UploadRegistry
<
Geo
::
FileRegistry
belongs_to
:upload
,
foreign_key: :file_id
belongs_to
:upload
,
foreign_key: :file_id
if
Rails
.
gem_version
>=
Gem
::
Version
.
new
(
'6.0'
)
raise
'.type_condition was changed in Rails 6.0, please adapt this code accordingly'
# see https://github.com/rails/rails/commit/6a1a1e66ea7a917942bd8369fa8dbfedce391dab
end
def
self
.
type_condition
(
table
=
arel_table
)
def
self
.
type_condition
(
table
=
arel_table
)
sti_column
=
arel_attribute
(
inheritance_column
,
table
)
sti_column
=
arel_attribute
(
inheritance_column
,
table
)
sti_names
=
Geo
::
FileService
::
DEFAULT_OBJECT_TYPES
sti_names
=
Geo
::
FileService
::
DEFAULT_OBJECT_TYPES
...
...
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