diff --git a/app/components/application_component.rb b/app/components/application_component.rb index a6c7c7b9..ed0c3d3d 100644 --- a/app/components/application_component.rb +++ b/app/components/application_component.rb @@ -5,8 +5,8 @@ class ApplicationComponent < ViewComponent::Base attr_accessor :attributes option :display, default: proc { true } - def initialize(*args, **options) - super(*args, **options) + def initialize(*, **options) + super defined_option_keys = self.class.dry_initializer.options.map(&:source) self.attributes = options.except(*defined_option_keys) end