Sha256: bd4e07fdb13bfd8ad43969be4a7f3a44784bf1c4bb386752eb00be5e3e82176b
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# frozen_string_literal: true class Tramway::User::UserDecorator < ::Tramway::Core::ApplicationDecorator class << self def collections [:all] end def list_attributes [:email] end def show_attributes [:email, :first_name, :last_name, :role, :created_at, :updated_at] end end delegate :first_name, to: :object delegate :last_name, to: :object delegate :email, to: :object delegate :role, to: :object delegate :created_at, to: :object delegate :updated_at, to: :object 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.1.1 | app/decorators/tramway/user/user_decorator.rb |
tramway-user-2.1.1 | app/decorators/tramway/user/user_decorator.rb |