Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cleaning-portalmec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Fernando Heise Ferreira
cleaning-portalmec
Commits
2bc58dd0
Commit
2bc58dd0
authored
7 years ago
by
Marcela Ribeiro de Oliveira
Browse files
Options
Downloads
Plain Diff
Merge branch 'follow' into 'master'
Follow See merge request !425
parents
173ba855
ce8c9cb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/serializers/follow_serializer.rb
+4
-1
4 additions, 1 deletion
app/serializers/follow_serializer.rb
with
4 additions
and
1 deletion
app/serializers/follow_serializer.rb
+
4
−
1
View file @
2bc58dd0
class
FollowSerializer
<
ActiveModel
::
Serializer
class
FollowSerializer
<
ActiveModel
::
Serializer
cache
key:
'follow'
,
expires_in:
24
.
hours
cache
key:
'follow'
,
expires_in:
24
.
hours
attributes
:id
def
follower
def
follower
object
.
user
object
.
user
end
end
attributes
:id
,
:follower
,
:followable
belongs_to
:followable
belongs_to
:follower
end
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment