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-1.0.2.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.2.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.14 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.13 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.12 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.11 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.10 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.9 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.8 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.7 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.6 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.5 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.4 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.3 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.2 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1.1 app/decorators/tramway/user/user_decorator.rb
tramway-user-1.0.1 app/decorators/tramway/user/user_decorator.rb