Provide current-contributor application-wide
* This change allows us to reuse the current user in multiple places.
This commit is contained in:

committed by
Sebastian Serth

parent
c29256aa81
commit
883169121c
@ -55,6 +55,15 @@ class ProgrammingGroup < ApplicationRecord
|
||||
"Programming Group #{id}"
|
||||
end
|
||||
|
||||
def to_page_context
|
||||
{
|
||||
id:,
|
||||
type: self.class.name,
|
||||
consumer: '',
|
||||
displayname:,
|
||||
}
|
||||
end
|
||||
|
||||
def programming_partner_ids
|
||||
users.map(&:id_with_type)
|
||||
end
|
||||
|
Reference in New Issue
Block a user