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.15.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.14.4 app/events/decidim/profile_updated_event.rb
decidim-core-0.14.3 app/events/decidim/profile_updated_event.rb
decidim-core-0.14.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.14.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.13.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.12.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.13.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.12.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.13.0.pre1 app/events/decidim/profile_updated_event.rb
decidim-core-0.12.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.11.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.12.0.pre app/events/decidim/profile_updated_event.rb
decidim-core-0.11.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.11.0.pre1 app/events/decidim/profile_updated_event.rb
decidim-core-0.10.1 app/events/decidim/profile_updated_event.rb
decidim-core-0.10.0 app/events/decidim/profile_updated_event.rb
decidim-core-0.9.3 app/events/decidim/profile_updated_event.rb
decidim-core-0.9.2 app/events/decidim/profile_updated_event.rb
decidim-core-0.9.1 app/events/decidim/profile_updated_event.rb