Sha256: 6c4742aa5b83c88d53895b32b5170c9417cb31df5c3ce7261c110a6481664526

Contents?: true

Size: 593 Bytes

Versions: 37

Compression:

Stored size: 593 Bytes

Contents

# frozen-string_literal: true

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

    i18n_attributes :user_group_name

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

    def resource_path
      url_helpers.group_manage_users_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

37 entries across 37 versions & 1 rubygems

Version Path
decidim-core-0.26.1 app/events/decidim/removed_from_group_event.rb
decidim-core-0.26.0 app/events/decidim/removed_from_group_event.rb
decidim-core-0.26.0.rc2 app/events/decidim/removed_from_group_event.rb
decidim-core-0.26.0.rc1 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.2 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.1 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.0 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.0.rc4 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.0.rc3 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.0.rc2 app/events/decidim/removed_from_group_event.rb
decidim-core-0.25.0.rc1 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.3 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.2 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.1 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.0 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.0.rc2 app/events/decidim/removed_from_group_event.rb
decidim-core-0.24.0.rc1 app/events/decidim/removed_from_group_event.rb