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
846106a0
Commit
846106a0
authored
May 24, 2017
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GeoEventLog model
parent
cb6c7cbe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
app/models/geo_event_log.rb
app/models/geo_event_log.rb
+3
-0
config/initializers/0_inflections.rb
config/initializers/0_inflections.rb
+1
-1
spec/models/geo_event_log_spec.rb
spec/models/geo_event_log_spec.rb
+7
-0
No files found.
app/models/geo_event_log.rb
0 → 100644
View file @
846106a0
class
GeoEventLog
<
ActiveRecord
::
Base
belongs_to
:push_event
,
class_name:
'GeoPushEvent'
,
foreign_key:
'push_event_id'
end
config/initializers/0_inflections.rb
View file @
846106a0
...
...
@@ -10,6 +10,6 @@
# end
#
ActiveSupport
::
Inflector
.
inflections
do
|
inflect
|
inflect
.
uncountable
%w(award_emoji project_statistics
project_registry file_registry system_note_metadata
)
inflect
.
uncountable
%w(award_emoji project_statistics
system_note_metadata geo_event_log project_registry file_registry
)
inflect
.
acronym
'EE'
end
spec/models/geo_event_log_spec.rb
0 → 100644
View file @
846106a0
require
'rails_helper'
RSpec
.
describe
GeoEventLog
,
type: :model
do
describe
'relationships'
do
it
{
is_expected
.
to
belong_to
(
:push_event
).
class_name
(
'GeoPushEvent'
).
with_foreign_key
(
'push_event_id'
)
}
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