Class: Milestoner::Views::Scopes::Contributors

Inherits:
Hanami::View::Scope
  • Object
show all
Defined in:
lib/milestoner/views/scopes/contributors.rb

Overview

The contributor specific behavior for partials.

Instance Method Summary collapse

Instance Method Details

#callObject



15
# File 'lib/milestoner/views/scopes/contributors.rb', line 15

def call = (render("milestones/contributors", all:) if all.any?)

#sentenceObject



13
# File 'lib/milestoner/views/scopes/contributors.rb', line 13

def sentence = all.map(&:name).to_sentence