Sha256: fc0b7719b01181cec8a1e7a9cf355099609125a40a03ee17b382abd9040914ab

Contents?: true

Size: 291 Bytes

Versions: 38

Compression:

Stored size: 291 Bytes

Contents

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

38 entries across 38 versions & 1 rubygems

Version Path
tramway-user-2.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-2.0.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-2.0 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.8 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.7 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.6 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.5 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.4.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.4 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.3 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.5 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.4 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.3.3 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.3.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.3.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.3 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.2.3 app/decorators/tramway/user/user_decorator.rb