Class: Decidim::Initiatives::CommitteeMemberForm

Inherits:
Form
  • Object
show all
Defined in:
app/forms/decidim/initiatives/committee_member_form.rb

Overview

A form object used to collect the data for a new initiative committee member.

Instance Method Summary collapse

Instance Method Details

#user_is_author?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/forms/decidim/initiatives/committee_member_form.rb', line 19

def user_is_author?
  initiative&.decidim_author_id == user_id
end