Skip to content

Commit 210f044

Browse files
committed
add comment about null initializer in Base
1 parent cae0504 commit 210f044

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)