@@ -76,7 +76,6 @@ Please refer to the [Changelog][railties] for detailed changes.
76
76
* Introduced ` Rails.gem_version ` as a convenience method to return ` Gem::Version.new(Rails.version) ` .
77
77
([ Pull Request] ( https://github.com/rails/rails/pull/14101 ) )
78
78
79
-
80
79
Action Pack
81
80
-----------
82
81
@@ -87,37 +86,43 @@ Please refer to the [Changelog][action-pack] for detailed changes.
87
86
* Deprecated support for setting the ` :to ` option of a router to a symbol or a
88
87
string that does not contain a ` # ` character:
89
88
90
- get '/posts', to: MyRackApp => (No change necessary)
91
- get '/posts', to: 'post#index' => (No change necessary)
92
- get '/posts', to: 'posts' => get '/posts', controller: :posts
93
- get '/posts', to: :index => get '/posts', action: :index
89
+ ``` ruby
90
+ get ' /posts' , to: MyRackApp => (No change necessary)
91
+ get ' /posts' , to: ' post#index' => (No change necessary)
92
+ get ' /posts' , to: ' posts' => get ' /posts' , controller: :posts
93
+ get ' /posts' , to: :index => get ' /posts' , action: :index
94
+ ```
94
95
95
- ([ Commit] ( https://github.com/rails/rails/commit/cc26b6b7bccf0eea2e2c1a9ebdcc9d30ca7390d9 ) )
96
+ ([Commit ](https: // github.com/ rails/ rails/ commit/ cc26b6b7bccf0eea2e2c1a9ebdcc9d30ca7390d9))
96
97
97
98
# ## Notable changes
98
99
99
100
* The ` *_filter` family methods has been removed from the documentation. Their
100
101
usage are discouraged in favor of the ` *_action` family methods:
101
102
102
- after_filter => after_action
103
- append_after_filter => append_after_action
104
- append_around_filter => append_around_action
105
- append_before_filter => append_before_action
106
- around_filter => around_action
107
- before_filter => before_action
108
- prepend_after_filter => prepend_after_action
109
- prepend_around_filter => prepend_around_action
110
- prepend_before_filter => prepend_before_action
111
- skip_after_filter => skip_after_action
112
- skip_around_filter => skip_around_action
113
- skip_before_filter => skip_before_action
114
- skip_filter => skip_action_callback
115
-
116
- If your application is depending on these methods, you should use the
117
- replacement ` *_action ` methods instead. These methods will be deprecated in
118
- the future and eventually removed from Rails.
119
- (Commit [ 1] ( https://github.com/rails/rails/commit/6c5f43bab8206747a8591435b2aa0ff7051ad3de ) ,
120
- [ 2] ( https://github.com/rails/rails/commit/489a8f2a44dc9cea09154ee1ee2557d1f037c7d4 ) )
103
+ ```
104
+ after_filter => after_action
105
+ append_after_filter => append_after_action
106
+ append_around_filter => append_around_action
107
+ append_before_filter => append_before_action
108
+ around_filter => around_action
109
+ before_filter => before_action
110
+ prepend_after_filter => prepend_after_action
111
+ prepend_around_filter => prepend_around_action
112
+ prepend_before_filter => prepend_before_action
113
+ skip_after_filter => skip_after_action
114
+ skip_around_filter => skip_around_action
115
+ skip_before_filter => skip_before_action
116
+ skip_filter => skip_action_callback
117
+ ```
118
+
119
+ If your application is depending on these methods, you should use the
120
+ replacement ` *_action` methods instead. These methods will be deprecated in
121
+ the future and eventually removed from Rails .
122
+
123
+ (Commit [1 ](https: // github.com/ rails/ rails/ commit/ 6c5f43bab8206747a8591435b2aa0ff7051ad3de),
124
+ [2 ](https: // github.com/ rails/ rails/ commit/ 489a8f2a44dc9cea09154ee1ee2557d1f037c7d4))
125
+
121
126
122
127
* Added HTTP method ` MKCALENDAR` from RFC - 4791
123
128
([Pull Request ](https: // github.com/ rails/ rails/ pull/ 15121 ))
@@ -211,12 +216,12 @@ for detailed changes.
211
216
is not fully possible because the Ruby range does not support excluded
212
217
beginnings.
213
218
214
- The current solution of incrementing the beginning is not correct and is now
215
- deprecated. For subtypes where we don't know how to increment (e.g. ` #succ `
216
- is not defined) it will raise an ` ArgumentError ` for ranges with excluding
217
- beginnings.
219
+ The current solution of incrementing the beginning is not correct
220
+ and is now deprecated. For subtypes where we don' t know how to increment
221
+ (e.g. `#succ` is not defined) it will raise an `ArgumentError` for ranges with
222
+ excluding beginnings.
218
223
219
- ([ Commit] ( https://github.com/rails/rails/commit/91949e48cf41af9f3e4ffba3e5eecf9b0a08bfc3 ) )
224
+ ([Commit](https://github.com/rails/rails/commit/91949e48cf41af9f3e4ffba3e5eecf9b0a08bfc3))
220
225
221
226
* Deprecated broken support for automatic detection of counter caches on
222
227
`has_many :through` associations. You should instead manually specify the
0 commit comments