Sha256: d1c65982f91e2155f101ea866aadcade4340b24d2e5d396d62635d084981de21

Contents?: true

Size: 526 Bytes

Versions: 19

Compression:

Stored size: 526 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A base form object to hold common logic, like automatically adding as
  # public method the params sent as context by the `FormFactory` concern.
  class Form < Decidim::AttributeObject::Form
    delegate :current_organization,
             :current_user,
             :current_component,
             :current_participatory_space,
             to: :context, prefix: false, allow_nil: true

    delegate :available_locales, to: :current_organization, allow_nil: true
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/forms/decidim/form.rb
decidim-core-0.27.9 app/forms/decidim/form.rb
decidim-core-0.28.3 app/forms/decidim/form.rb
decidim-core-0.27.8 app/forms/decidim/form.rb
decidim-core-0.28.2 app/forms/decidim/form.rb
decidim-core-0.27.7 app/forms/decidim/form.rb
decidim-core-0.28.1 app/forms/decidim/form.rb
decidim-core-0.27.6 app/forms/decidim/form.rb
decidim-core-0.28.0 app/forms/decidim/form.rb
decidim-core-0.27.5 app/forms/decidim/form.rb
decidim-core-0.28.0.rc5 app/forms/decidim/form.rb
decidim-core-0.28.0.rc4 app/forms/decidim/form.rb
decidim-core-0.27.4 app/forms/decidim/form.rb
decidim-core-0.27.3 app/forms/decidim/form.rb
decidim-core-0.27.2 app/forms/decidim/form.rb
decidim-core-0.27.1 app/forms/decidim/form.rb
decidim-core-0.27.0 app/forms/decidim/form.rb
decidim-core-0.27.0.rc2 app/forms/decidim/form.rb
decidim-core-0.27.0.rc1 app/forms/decidim/form.rb