Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jul 7, 2024
1 parent b2b61f6 commit eec1306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/application_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eec1306

Please sign in to comment.