Class: Decidim::ActionDelegator::Ponderation

Inherits:
ApplicationRecord show all
Defined in:
app/models/decidim/action_delegator/ponderation.rb

Instance Method Summary collapse

Instance Method Details

#destroyable?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/decidim/action_delegator/ponderation.rb', line 23

def destroyable?
  participants.empty?
end

#titleObject



19
20
21
# File 'app/models/decidim/action_delegator/ponderation.rb', line 19

def title
  @title ||= "#{name} (x#{weight})"
end