Sha256: ae1e5e658c387f376c0ace2e3f762aae543fc344af649895e438d53b39f46089

Contents?: true

Size: 594 Bytes

Versions: 37

Compression:

Stored size: 594 Bytes

Contents

# frozen-string_literal: true

module Decidim
  class DemotedMembershipEvent < 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.27.9 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.8 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.7 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.6 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.10 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.9 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.5 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.8 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.4 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.3 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.7 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.5 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.2 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.1 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.4 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.0 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.3 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.0.rc2 app/events/decidim/demoted_membership_event.rb
decidim-core-0.27.0.rc1 app/events/decidim/demoted_membership_event.rb
decidim-core-0.26.2 app/events/decidim/demoted_membership_event.rb