Permalink
Browse files

Remove deprecated `NamedRouteCollection#helpers`

  • Loading branch information...
rafaelfranca committed Jan 3, 2015
1 parent 1f3b0a8 commit 2cc91c37bc2e32b7a04b2d782fb8f4a69a14503f
Showing with 4 additions and 8 deletions.
  1. +4 −0 actionpack/CHANGELOG.md
  2. +0 −8 actionpack/lib/action_dispatch/routing/route_set.rb
View
@@ -1,3 +1,7 @@
* Remove deprecated `NamedRouteCollection#helpers`.
*Rafael Mendonça França*
* Remove deprecated support to define routes with `:to` option that doesn't contain `#`.
*Rafael Mendonça França*
@@ -102,14 +102,6 @@ def route_defined?(name)
@path_helpers.include?(key) || @url_helpers.include?(key)
end
def helpers
ActiveSupport::Deprecation.warn(<<-MSG.squish)
`named_routes.helpers` is deprecated, please use `route_defined?(route_name)`
to see if a named route was defined.
MSG
@path_helpers + @url_helpers
end
def helper_names
@path_helpers.map(&:to_s) + @url_helpers.map(&:to_s)
end

0 comments on commit 2cc91c3

Please sign in to comment.