You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-add @private, undocumented .identifier method that was only me… (#2109)
* Re-add `@private`, undocumented `.identifier` method that was only meant for internal framework use but was used by some downstream consumers. This method will be removed in a coming minor release.
* add nocov marks
Copy file name to clipboardExpand all lines: docs/CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,10 @@ nav_order: 5
10
10
11
11
## main
12
12
13
+
* Re-add `@private`, undocumented `.identifier` method that was only meant for internal framework use but was used by some downstream consumers. This method will be removed in a coming minor release.
14
+
15
+
*Joel Hawksley*
16
+
13
17
## 3.15.0
14
18
15
19
* Add basic internal testing for memory allocations.
Copy file name to clipboardExpand all lines: lib/view_component/base.rb
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -574,6 +574,15 @@ def compiler
574
574
@__vc_compiler ||= Compiler.new(self)
575
575
end
576
576
577
+
# @private
578
+
defidentifier
579
+
# :nocov:
580
+
Kernel.warn("WARNING: The #{self.class}.identifier is undocumented and was meant for internal framework usage only. As it is no longer used by the framework it will be removed in a coming non-breaking ViewComponent release.")
581
+
582
+
source_location
583
+
# :nocov:
584
+
end
585
+
577
586
# Set the parameter name used when rendering elements of a collection ([documentation](/guide/collections)):
0 commit comments