Skip to content

Commit

Permalink
Fix indentation of end in slot_v2.rb (#1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlakeWilliams authored Oct 1, 2021
1 parent 69087aa commit f348d39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ title: Changelog

## main

* Fix Ruby indentation warning.

*Blake Williams*

* Add `--parent` generator option to specify the parent class.
* Add config option `config.view_component.component_parent_class` to change it project-wide.

Expand Down
2 changes: 1 addition & 1 deletion lib/view_component/slot_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def to_s
view_context.capture(&@__vc_content_block)
elsif defined?(@__vc_content_set_by_with_content)
@__vc_content_set_by_with_content
end
end

@content = @content.to_s
end
Expand Down

0 comments on commit f348d39

Please sign in to comment.