Skip to content

Commit 7410dda

Browse files
authored
add comment about null initializer in Base (#2249)
1 parent cae0504 commit 7410dda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/view_component/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def render?
195195
true
196196
end
197197

198+
# Override the ActionView::Base initializer so that components
199+
# do not need to define their own initializers.
198200
# @private
199201
def initialize(*)
200202
end

0 commit comments

Comments
 (0)