We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NamedRouteCollection#helpers
1 parent 1f3b0a8 commit 2cc91c3Copy full SHA for 2cc91c3
actionpack/CHANGELOG.md
@@ -1,3 +1,7 @@
1
+* Remove deprecated `NamedRouteCollection#helpers`.
2
+
3
+ *Rafael Mendonça França*
4
5
* Remove deprecated support to define routes with `:to` option that doesn't contain `#`.
6
7
*Rafael Mendonça França*
actionpack/lib/action_dispatch/routing/route_set.rb
@@ -102,14 +102,6 @@ def route_defined?(name)
102
@path_helpers.include?(key) || @url_helpers.include?(key)
103
end
104
105
- def helpers
106
- ActiveSupport::Deprecation.warn(<<-MSG.squish)
107
- `named_routes.helpers` is deprecated, please use `route_defined?(route_name)`
108
- to see if a named route was defined.
109
- MSG
110
- @path_helpers + @url_helpers
111
- end
112
-
113
def helper_names
114
@path_helpers.map(&:to_s) + @url_helpers.map(&:to_s)
115
0 commit comments