module Decidim::HasComponent

A concern with the components needed when you want a model to have a component.

Public Instance Methods

component_manifest_name(manifest_name) click to toggle source
# File lib/decidim/has_component.rb, line 20
def component_manifest_name(manifest_name)
  validates :component, component: { manifest: manifest_name || name.demodulize.pluralize.downcase }
end