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.23.3 app/events/decidim/profile_updated_event.rb
decidim-core-0.23.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.23.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.23.1.rc1 app/events/decidim/profile_updated_event.rb
decidim-core-0.23.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.22.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.21.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.20.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.20.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.19.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.18.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.19.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.17.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.18.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.17.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.16.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.17.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.16.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.15.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.15.1 app/events/decidim/profile_updated_event.rb