Sha256: 0fe689496daaf84445d90bd62fe2b8ec49c3fca3dbdad0c5b145f515723ddc08
Contents?: true
Size: 582 Bytes
Versions: 9
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Decidim # This concern contains the logic related to being an author. # # it mainly declares abstract methods to be implemented by artifacts # including it in its inheritance hierarchy. # module ActsAsAuthor extend ActiveSupport::Concern included do # Authors of Authorables must provide its presenters. # # Return: The presenter for the current author. def presenter raise NotImplementedError, "Authors must return an instance of its Presenter via this method." end end end end
Version data entries
9 entries across 9 versions & 1 rubygems