Sha256: 6fd8736c586b019537d7fe5676e1ca8d63fc8e687d09afbfec9477cfdb0d4c22

Contents?: true

Size: 476 Bytes

Versions: 80

Compression:

Stored size: 476 Bytes

Contents

# frozen-string_literal: true

module Decidim
  class ProfileUpdatedEvent < Decidim::Events::SimpleEvent
    i18n_attributes :nickname, :name

    delegate :profile_path, :profile_url, :nickname, :name, to: :updated_user

    def resource_path
      profile_path
    end

    def resource_title
      name
    end

    def resource_url
      profile_url
    end

    private

    def updated_user
      @updated_user ||= Decidim::UserPresenter.new(resource)
    end
  end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.8 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.7 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.6 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.10 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.9 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.5 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.8 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.4 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.3 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.7 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.5 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.4 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.3 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.0.rc2 app/events/decidim/profile_updated_event.rb
decidim-core-0.27.0.rc1 app/events/decidim/profile_updated_event.rb
decidim-core-0.26.2 app/events/decidim/profile_updated_event.rb