Skip to content
Snippets Groups Projects
Commit d0ea0362 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

Merge branch 'master' of gitlab.c3sl.ufpr.br:portalmec/portalmec

parents db48120d af933b8f
No related branches found
No related tags found
No related merge requests found
class ActivitiyPolicy < Struct.new(:user, :activity_owner) class ActivityPolicy < ApplicationPolicy
class Scope < Scope class Scope < Scope
attr_reader :user, :scope attr_reader :user, :scope
...@@ -18,11 +17,12 @@ class ActivitiyPolicy < Struct.new(:user, :activity_owner) ...@@ -18,11 +17,12 @@ class ActivitiyPolicy < Struct.new(:user, :activity_owner)
end end
end end
def index?; true; end def index?
true
end
## only user followers can see your activities ## only user followers can see your activities
def user_activities? def user_activities?
record if user.following? record record if user.following? record
end end
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment