Method: Decidim::Authorization#transfer!

Defined in:
decidim-core/app/models/decidim/authorization.rb

#transfer!(handler) ⇒ Decidim::AuthorizationTransfer

Transfers the authorization and data bound to the authorization to the other user provided as an argument.

Parameters:

  • handler (Decidim::AuthorizationHandler)

    The authorization handler that caused the conflicting situation to happen and which stores the authorizing user’s information with the latest authorization data.

Returns:



90
91
92
# File 'decidim-core/app/models/decidim/authorization.rb', line 90

def transfer!(handler)
  Decidim::AuthorizationTransfer.perform!(self, handler)
end