Class: Decidim::Coauthorship

Inherits:
ApplicationRecord show all
Includes:
Authorable
Defined in:
app/models/decidim/coauthorship.rb

Instance Method Summary collapse

Methods included from TranslatableAttributes

#default_locale?

Instance Method Details

#identityObject



11
12
13
# File 'app/models/decidim/coauthorship.rb', line 11

def identity
  user_group || author
end

#mapped_resource_typeString

Reports the mapped resource type for authorization transfers.

Returns:

  • (String)

    The resource type as string (i.e. its class name).



18
19
20
# File 'app/models/decidim/coauthorship.rb', line 18

def mapped_resource_type
  coauthorable_type
end