Class: Decidim::Amendable::Form
Overview
a form object common for amendments
Instance Method Summary
collapse
#default_locale?
Instance Method Details
#amendable ⇒ Object
15
16
17
|
# File 'app/forms/decidim/amendable/form.rb', line 15
def amendable
@amendable ||= amendment&.amendable
end
|
#amender ⇒ Object
23
24
25
|
# File 'app/forms/decidim/amendable/form.rb', line 23
def amender
@amender ||= amendment&.amender
end
|
#amendment ⇒ Object
11
12
13
|
# File 'app/forms/decidim/amendable/form.rb', line 11
def amendment
@amendment ||= Decidim::Amendment.find_by(id: id)
end
|
#emendation ⇒ Object
19
20
21
|
# File 'app/forms/decidim/amendable/form.rb', line 19
def emendation
@emendation ||= amendment&.emendation
end
|