Module: Decidim::Kids::ParticipatorySpaceContextOverride

Extended by:
ActiveSupport::Concern
Includes:
AgeMethods
Defined in:
app/controllers/concerns/decidim/kids/participatory_space_context_override.rb

Overview

This module contains all the domain logic associated to restrict operations depending on the user’s age/minors configuration.

Instance Method Summary collapse

Methods included from AgeMethods

#age_from_birthday, #age_from_date

Instance Method Details

#space_minors_configObject



26
27
28
# File 'app/controllers/concerns/decidim/kids/participatory_space_context_override.rb', line 26

def space_minors_config
  @space_minors_config ||= MinorsSpaceConfig.for(current_participatory_space)
end