Sha256: 48d04afc301e8f36652b444811ca7749c914bcd48d0308ff011d394307e5a0e4

Contents?: true

Size: 574 Bytes

Versions: 13

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class JoinRequestRejectedEvent < Decidim::Events::SimpleEvent
    delegate :url_helpers, to: "Decidim::Core::Engine.routes"

    i18n_attributes :user_group_name

    def resource_url
      url_helpers.profile_url(
        user_group_nickname,
        host: user.organization.host
      )
    end

    def resource_path
      url_helpers.profile_path(user_group_nickname)
    end

    def user_group_nickname
      extra["user_group_nickname"]
    end

    def user_group_name
      extra["user_group_name"]
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-core-0.29.1 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.4 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.29.0 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.3 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.29.0.rc4 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.29.0.rc3 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.29.0.rc2 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.29.0.rc1 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.2 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.1 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.0 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.0.rc5 app/events/decidim/join_request_rejected_event.rb
decidim-core-0.28.0.rc4 app/events/decidim/join_request_rejected_event.rb