Sha256: 48e915da998f42ed2816f9d8a5557259cc7a8723bcc15163169ab1f93a262479

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator
  class << self
    def collections
      [:all]
    end

    def list_attributes
      [:email]
    end
  end

  def name
    "#{object.first_name} #{object.last_name}"
  end

  delegate :email, to: :object
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tramway-user-2.1.0.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-2.1.0.1 app/decorators/tramway/user/user_decorator.rb