Class: Sipity::Decorators::CollaboratorDecorator

Inherits:
Draper::Decorator
  • Object
show all
Defined in:
app/decorators/sipity/decorators/collaborator_decorator.rb

Overview

A decoration layer for Sipity::Collaborator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.object_classObject


5
6
7
# File 'app/decorators/sipity/decorators/collaborator_decorator.rb', line 5

def self.object_class
  Models::Collaborator
end

Instance Method Details

#human_attribute_name(name) ⇒ Object


11
12
13
# File 'app/decorators/sipity/decorators/collaborator_decorator.rb', line 11

def human_attribute_name(name)
  object.class.human_attribute_name(name)
end

#to_sObject


15
16
17
# File 'app/decorators/sipity/decorators/collaborator_decorator.rb', line 15

def to_s
  name
end