Skip to content

Commit 3130822

Browse files
committed
Remove deprecated Metal#env
1 parent 7339547 commit 3130822

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

actionpack/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Remove deprecated `Metal#env`.
2+
3+
*Rafael Mendonça França*
4+
15
* Make `with_routing` test helper work when testing controllers inheriting from `ActionController::API`
26

37
*Julia López*

actionpack/lib/action_controller/metal.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,6 @@ def build_middleware(klass, args, block)
118118
class Metal < AbstractController::Base
119119
abstract!
120120

121-
def env
122-
@_request.env
123-
end
124-
deprecate :env
125-
126121
# Returns the last part of the controller's name, underscored, without the ending
127122
# <tt>Controller</tt>. For instance, PostsController returns <tt>posts</tt>.
128123
# Namespaces are left out, so Admin::PostsController returns <tt>posts</tt> as well.

0 commit comments

Comments
 (0)