Sha256: 774a6b3b6fdbdc4095cedd7b8fdb72826a421ce0db5debfc2ca85d81d5887d70

Contents?: true

Size: 763 Bytes

Versions: 6

Compression:

Stored size: 763 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    module Admin
      # A command with all the business logic when updating an assembly
      # member in the system.
      class UpdateAssemblyMember < Decidim::Commands::UpdateResource
        fetch_file_attributes :non_user_avatar

        fetch_form_attributes :full_name, :gender, :birthday, :birthplace, :ceased_date, :designation_date,
                              :position, :position_other, :weight, :user

        private

        def extra_params
          {
            resource: {
              title: resource.full_name
            },
            participatory_space: {
              title: resource.assembly.title
            }
          }
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-assemblies-0.29.1 app/commands/decidim/assemblies/admin/update_assembly_member.rb
decidim-assemblies-0.29.0 app/commands/decidim/assemblies/admin/update_assembly_member.rb
decidim-assemblies-0.29.0.rc4 app/commands/decidim/assemblies/admin/update_assembly_member.rb
decidim-assemblies-0.29.0.rc3 app/commands/decidim/assemblies/admin/update_assembly_member.rb
decidim-assemblies-0.29.0.rc2 app/commands/decidim/assemblies/admin/update_assembly_member.rb
decidim-assemblies-0.29.0.rc1 app/commands/decidim/assemblies/admin/update_assembly_member.rb