Sha256: 8fc3512278fb7c8cbc4b285b495427e2e11838f4f58eb1f0719a49b31424932b
Contents?: true
Size: 544 Bytes
Versions: 88
Compression:
Stored size: 544 Bytes
Contents
# frozen_string_literal: true require "active_support/concern" module Decidim # This concern groups methods and helpers related to accessing the settings # of a component from a controller. module Settings extend ActiveSupport::Concern included do helper_method :component_settings, :current_settings def component_settings @component_settings ||= current_component.settings end def current_settings @current_settings ||= current_component.current_settings end end end end
Version data entries
88 entries across 88 versions & 1 rubygems