Class: Decidim::Amendable::Form
- Inherits:
-
Form
- Object
- Rectify::Form
- Form
- Decidim::Amendable::Form
show all
- Defined in:
- app/forms/decidim/amendable/form.rb
Overview
a form object common for amendments
Instance Method Summary
collapse
Instance Method Details
#amendable ⇒ Object
13
14
15
|
# File 'app/forms/decidim/amendable/form.rb', line 13
def amendable
@amendable ||= amendment&.amendable
end
|
#amender ⇒ Object
21
22
23
|
# File 'app/forms/decidim/amendable/form.rb', line 21
def amender
@amender ||= amendment&.amender
end
|
#amendment ⇒ Object
9
10
11
|
# File 'app/forms/decidim/amendable/form.rb', line 9
def amendment
@amendment ||= Decidim::Amendment.find_by(id: id)
end
|
#emendation ⇒ Object
17
18
19
|
# File 'app/forms/decidim/amendable/form.rb', line 17
def emendation
@emendation ||= amendment&.emendation
end
|