Skip to content

Commit 2cc91c3

Browse files
committed
Remove deprecated NamedRouteCollection#helpers
1 parent 1f3b0a8 commit 2cc91c3

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

actionpack/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `NamedRouteCollection#helpers`.
2+
3+
*Rafael Mendonça França*
4+
15
* Remove deprecated support to define routes with `:to` option that doesn't contain `#`.
26

37
*Rafael Mendonça França*

actionpack/lib/action_dispatch/routing/route_set.rb

-8
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ def route_defined?(name)
102102
@path_helpers.include?(key) || @url_helpers.include?(key)
103103
end
104104

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-
113105
def helper_names
114106
@path_helpers.map(&:to_s) + @url_helpers.map(&:to_s)
115107
end

0 commit comments

Comments
 (0)