lib/voom/presenters/dsl/components/base.rb in voom-presenters-0.1.5 vs lib/voom/presenters/dsl/components/base.rb in voom-presenters-0.1.6

- old
+ new

@@ -70,9 +70,14 @@ def _helpers_ @parent.send(:_helpers_) if @parent end + + def default(key) + Settings.config.presenters.components.defaults&.public_send(type)&.public_send(key) + end + end end end end end