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.23.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.22.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.21.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.20.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.20.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.19.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.18.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.19.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.17.2 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.18.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.17.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.16.1 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.17.0 app/events/decidim/meetings/registration_code_validated_event.rb
decidim-meetings-0.16.0 app/events/decidim/meetings/registration_code_validated_event.rb