Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
c13d36c9
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,体验更适合开发者的 AI 搜索 >>
提交
c13d36c9
编写于
4月 27, 2012
作者:
M
Mark Rushakoff
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
More using <tt>x</tt> instead of +x+ when the latter renders improperly.
上级
43af34c0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
4 deletion
+4
-4
actionpack/lib/action_controller/metal/params_wrapper.rb
actionpack/lib/action_controller/metal/params_wrapper.rb
+1
-1
actionpack/lib/action_dispatch/middleware/reloader.rb
actionpack/lib/action_dispatch/middleware/reloader.rb
+2
-2
activerecord/lib/active_record/explain.rb
activerecord/lib/active_record/explain.rb
+1
-1
未找到文件。
actionpack/lib/action_controller/metal/params_wrapper.rb
浏览文件 @
c13d36c9
...
...
@@ -48,7 +48,7 @@ module ActionController
# method attribute_names.
#
# If you're going to pass the parameters to an +ActiveModel+ object (such as
#
+User.new(params[:user])+
), you might consider passing the model class to
#
<tt>User.new(params[:user])</tt>
), you might consider passing the model class to
# the method instead. The +ParamsWrapper+ will actually try to determine the
# list of attribute names from the model and only wrap those attributes:
#
...
...
actionpack/lib/action_dispatch/middleware/reloader.rb
浏览文件 @
c13d36c9
...
...
@@ -20,8 +20,8 @@ module ActionDispatch
# By default, ActionDispatch::Reloader is included in the middleware stack
# only in the development environment; specifically, when config.cache_classes
# is false. Callbacks may be registered even when it is not included in the
# middleware stack, but are executed only when
+ActionDispatch::Reloader.prepare!+
# or
+ActionDispatch::Reloader.cleanup!+
are called manually.
# middleware stack, but are executed only when
<tt>ActionDispatch::Reloader.prepare!</tt>
# or
<tt>ActionDispatch::Reloader.cleanup!</tt>
are called manually.
#
class
Reloader
include
ActiveSupport
::
Callbacks
...
...
activerecord/lib/active_record/explain.rb
浏览文件 @
c13d36c9
...
...
@@ -70,7 +70,7 @@ def exec_explain(queries) # :nodoc:
# the threshold is set to 0.
#
# As the name of the method suggests this only applies to automatic
# EXPLAINs, manual calls to
+ActiveRecord::Relation#explain+
run.
# EXPLAINs, manual calls to
<tt>ActiveRecord::Relation#explain</tt>
run.
def
silence_auto_explain
current
=
Thread
.
current
original
,
current
[
:available_queries_for_explain
]
=
current
[
:available_queries_for_explain
],
false
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录