Class: Decidim::Form

Inherits:
Rectify::Form
  • Object
show all
Defined in:
app/forms/decidim/form.rb

Overview

A base form object to hold common logic, like automatically adding as public method the params sent as context by the ‘FormFactory` concern.

Instance Method Summary collapse

Instance Method Details

#available_localesObject



12
13
14
# File 'app/forms/decidim/form.rb', line 12

def available_locales
  current_organization&.available_locales
end