Sha256: 8bf3ccc60bfc4993621deea7e9141af4818858f6a73b0742e94780b6c5b35b73

Contents?: true

Size: 373 Bytes

Versions: 34

Compression:

Stored size: 373 Bytes

Contents

# frozen-string_literal: true

module Decidim
  module Meetings
    class RegistrationCodeValidatedEvent < Decidim::Events::SimpleEvent
      i18n_attributes :registration_code

      def resource_text
        translated_attribute(resource.description)
      end

      private

      def registration_code
        extra["registration"]["code"]
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
decidim-meetings-0.25.2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.0.rc4 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.0.rc3 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.0.rc2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.25.0.rc1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.3 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.6 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.5 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.0.rc2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.4 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.24.0.rc1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.3 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.23.1.rc1 app/events/decidim/meetings/registration_code_validated_event.rb