Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
c89c37d1
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c89c37d1
编写于
8月 19, 2014
作者:
R
Robin Dupret
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16556 from jonatack/patch-9
4.2 Release Notes pass [ci skip]
上级
31b3ae8e
0513d786
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
15 deletion
+16
-15
guides/source/4_2_release_notes.md
guides/source/4_2_release_notes.md
+16
-15
未找到文件。
guides/source/4_2_release_notes.md
浏览文件 @
c89c37d1
...
...
@@ -16,7 +16,7 @@ Upgrading to Rails 4.2
If you're upgrading an existing application, it's a great idea to have good test
coverage before going in. You should also first upgrade to Rails 4.1 in case you
haven't and make sure your application still runs as expected before attempting
an updat
e to Rails 4.2. A list of things to watch out for when upgrading is
to upgrad
e to Rails 4.2. A list of things to watch out for when upgrading is
available in the
[
Upgrading Ruby on Rails
](
upgrading_ruby_on_rails.html#upgrading-from-rails-4.1-to-rails-4.2
)
guide.
...
...
@@ -72,7 +72,7 @@ Please refer to the [Changelog][railties] for detailed changes.
*
Added a
`required`
option to the model generator for associations.
(
[
Pull Request
](
https://github.com/rails/rails/pull/16062
)
)
*
Introduced an
`after_bundle`
callback
s
for use in Rails templates.
*
Introduced an
`after_bundle`
callback for use in Rails templates.
(
[
Pull Request
](
https://github.com/rails/rails/pull/16359
)
)
*
Introduced the
`x`
namespace for defining custom configuration options:
...
...
@@ -115,11 +115,12 @@ Please refer to the [Changelog][railties] for detailed changes.
([Pull Request](https://github.com/rails/rails/pull/16129))
*
Introduced
`--skip-gems`
option in the app generator to skip gems such as
*
Introduced
a
`--skip-gems`
option in the app generator to skip gems such as
`turbolinks`
and
`coffee-rails`
that does not have their own specific flags.
(
[
Commit
](
https://github.com/rails/rails/commit/10565895805887d4faf004a6f71219da177f78b7
)
)
*
Introduced
`bin/setup`
script to bootstrap an application.
*
Introduced a
`bin/setup`
script to enable automated setup code when
bootstrapping an application.
(
[
Pull Request
](
https://github.com/rails/rails/pull/15189
)
)
*
Changed default value for
`config.assets.digest`
to
`true`
in development.
...
...
@@ -143,8 +144,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
### Removals
*
`respond_with`
and the class-level
`respond_to`
were removed from Rails and
moved to the
`responders`
gem (version 2.0). Add
it to your
`Gemfile`
to
continue using these features.
moved to the
`responders`
gem (version 2.0). Add
`gem 'responders', '~> 2.0'`
to your
`Gemfile`
to
continue using these features.
(
[
Pull Request
](
https://github.com/rails/rails/pull/16526
)
)
*
Removed deprecated
`AbstractController::Helpers::ClassMethods::MissingHelperError`
...
...
@@ -183,8 +184,8 @@ Please refer to the [Changelog][action-pack] for detailed changes.
is
`['controller', 'action']`
.
(
[
Pull Request
](
https://github.com/rails/rails/pull/15933
)
)
*
The
`*_filter`
family methods ha
s
been removed from the documentation. Their
usage
are
discouraged in favor of the
`*_action`
family methods:
*
The
`*_filter`
family methods ha
ve
been removed from the documentation. Their
usage
is
discouraged in favor of the
`*_action`
family methods:
```
after_filter => after_action
...
...
@@ -219,10 +220,10 @@ Please refer to the [Changelog][action-pack] for detailed changes.
*
Segments that are passed into URL helpers are now automatically escaped.
(
[
Commit
](
https://github.com/rails/rails/commit/5460591f0226a9d248b7b4f89186bd5553e7768f
)
)
*
Improved Routing Error page with fuzzy matching for route search.
*
Improved
the
Routing Error page with fuzzy matching for route search.
(
[
Pull Request
](
https://github.com/rails/rails/pull/14619
)
)
*
Added option to disable logging of CSRF failures.
*
Added
an
option to disable logging of CSRF failures.
(
[
Pull Request
](
https://github.com/rails/rails/pull/14280
)
)
...
...
@@ -238,14 +239,14 @@ Please refer to the [Changelog][action-view] for detailed changes.
where to find views.
(
[
Pull Request
](
https://github.com/rails/rails/pull/15026
)
)
*
Deprecated
`ActionView::Digestor#digest(name, format, finder, options = {})`
,
a
rguments should be passed as a hash instead.
*
Deprecated
`ActionView::Digestor#digest(name, format, finder, options = {})`
.
A
rguments should be passed as a hash instead.
(
[
Pull Request
](
https://github.com/rails/rails/pull/14243
)
)
### Notable changes
*
Introduced a
`#{partial_name}_iteration`
special local variable for use with
partials that are rendered with a collection. It provides
the
access to the
partials that are rendered with a collection. It provides access to the
current state of the iteration via the
`#index`
,
`#size`
,
`#first?`
and
`#last?`
methods.
(
[
Pull Request
](
https://github.com/rails/rails/pull/7698
)
)
...
...
@@ -406,7 +407,7 @@ Please refer to the [Changelog][active-model] for detailed changes.
### Notable changes
*
Introduced
`undo_changes`
method in
`ActiveModel::Dirty`
to restore the
*
Introduced
the
`undo_changes`
method in
`ActiveModel::Dirty`
to restore the
changed (dirty) attributes to their previous values.
(
[
Pull Request
](
https://github.com/rails/rails/pull/14861
)
)
...
...
@@ -452,7 +453,7 @@ Please refer to the [Changelog][active-support] for detailed changes.
*
The
`humanize`
inflector helper now strips any leading underscores.
(
[
Commit
](
https://github.com/rails/rails/commit/daaa21bc7d20f2e4ff451637423a25ff2d5e75c7
)
)
*
Introduce
`Concern#class_methods`
as an alternative to
*
Introduce
d
`Concern#class_methods`
as an alternative to
`module ClassMethods`
, as well as
`Kernel#concern`
to avoid the
`module Foo; extend ActiveSupport::Concern; end`
boilerplate.
(
[
Commit
](
https://github.com/rails/rails/commit/b16c36e688970df2f96f793a759365b248b582ad
)
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录