Skip to content

Commit

Permalink
Fix rubocop violations and pass blocks explicitly
Browse files Browse the repository at this point in the history
Couple of Lint/UnusedMethodArgument cop violations
plus is more consistent with how we are passing named
blocks in `RadioButtonsFieldset` and `CheckBoxesFieldset`.
  • Loading branch information
jsugarman committed Jul 1, 2021
1 parent daca19d commit fd025f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FieldsetCheckBox < Base
include Traits::FieldsetItem

def initialize(builder, object_name, attribute_name, value, unchecked_value, label:, hint:, link_errors:, multiple:, exclusive:, **kwargs, &block)
super(builder, object_name, attribute_name)
super(builder, object_name, attribute_name, &block)

@value = value
@unchecked_value = unchecked_value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FieldsetRadioButton < Base
include Traits::FieldsetItem

def initialize(builder, object_name, attribute_name, value, label:, hint:, link_errors:, **kwargs, &block)
super(builder, object_name, attribute_name)
super(builder, object_name, attribute_name, &block)

@value = value
@label = label
Expand Down

0 comments on commit fd025f4

Please sign in to comment.