Module: Participable::ClassMethods

Defined in:
app/models/concerns/participable.rb

Instance Method Summary collapse

Instance Method Details

#participant(*attrs) ⇒ Object


29
30
31
# File 'app/models/concerns/participable.rb', line 29

def participant(*attrs)
  participant_attrs.concat(attrs)
end

#participant_attrsObject


33
34
35
# File 'app/models/concerns/participable.rb', line 33

def participant_attrs
  @participant_attrs ||= []
end