Sha256: 8e2b42d7858fcee71edff92610e713210176ddf8068ea970cd29babe87be0b81

Contents?: true

Size: 509 Bytes

Versions: 63

Compression:

Stored size: 509 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 < Rectify::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

63 entries across 63 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/forms/decidim/form.rb
decidim-core-0.26.9 app/forms/decidim/form.rb
decidim-core-0.26.8 app/forms/decidim/form.rb
decidim-core-0.26.7 app/forms/decidim/form.rb
decidim-core-0.26.5 app/forms/decidim/form.rb
decidim-core-0.26.4 app/forms/decidim/form.rb
decidim-core-0.26.3 app/forms/decidim/form.rb
decidim-core-0.26.2 app/forms/decidim/form.rb
decidim-core-0.26.1 app/forms/decidim/form.rb
decidim-core-0.26.0 app/forms/decidim/form.rb
decidim-core-0.26.0.rc2 app/forms/decidim/form.rb
decidim-core-0.26.0.rc1 app/forms/decidim/form.rb
decidim-core-0.25.2 app/forms/decidim/form.rb
decidim-core-0.25.1 app/forms/decidim/form.rb
decidim-core-0.25.0 app/forms/decidim/form.rb
decidim-core-0.25.0.rc4 app/forms/decidim/form.rb
decidim-core-0.25.0.rc3 app/forms/decidim/form.rb
decidim-core-0.25.0.rc2 app/forms/decidim/form.rb
decidim-core-0.25.0.rc1 app/forms/decidim/form.rb
decidim-core-0.24.3 app/forms/decidim/form.rb