We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9875252 commit ac5a69bCopy full SHA for ac5a69b
modules/aca/rooms/component_manager.rb
@@ -127,6 +127,9 @@ def load(component)
127
::Aca::Rooms::Components.const_set component, Module.new
128
end
129
130
+ # Inject a `setting` class method that pushes back into settings
131
+ # here via a closure. This enables any settings used by the
132
+ # component to be declared as `setting key: <default>`.
133
mod.define_singleton_method :setting do |hash|
134
settings.merge! hash do |key, _, _|
135
raise "\"#{key}\" declared multiple times in #{fqn}"
0 commit comments