Sha256: 755f5bee30c0bd014804bdcf8774df095a53c81b956746030fed213e57722b80
Contents?: true
Size: 532 Bytes
Versions: 34
Compression:
Stored size: 532 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 feature from a controller. module Settings extend ActiveSupport::Concern included do helper_method :feature_settings, :current_settings def feature_settings @feature_settings ||= current_feature.settings end def current_settings @current_settings ||= current_feature.current_settings end end end end
Version data entries
34 entries across 34 versions & 2 rubygems