Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
44f07098
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,发现更多精彩内容 >>
提交
44f07098
编写于
8月 24, 2011
作者:
A
Aaron Patterson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dealing with some -w warnings on startup
上级
2f88743c
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
11 addition
and
2 deletion
+11
-2
activesupport/lib/active_support/i18n_railtie.rb
activesupport/lib/active_support/i18n_railtie.rb
+2
-0
railties/lib/rails/application.rb
railties/lib/rails/application.rb
+5
-0
railties/lib/rails/application/bootstrap.rb
railties/lib/rails/application/bootstrap.rb
+1
-1
railties/lib/rails/engine.rb
railties/lib/rails/engine.rb
+1
-0
railties/lib/rails/plugin.rb
railties/lib/rails/plugin.rb
+2
-1
未找到文件。
activesupport/lib/active_support/i18n_railtie.rb
浏览文件 @
44f07098
...
...
@@ -38,6 +38,8 @@ def self.reloader
protected
@i18n_inited
=
false
# Setup i18n configuration
def
self
.
initialize_i18n
(
app
)
return
if
@i18n_inited
...
...
railties/lib/rails/application.rb
浏览文件 @
44f07098
...
...
@@ -55,6 +55,11 @@ def inherited(base)
delegate
:default_url_options
,
:default_url_options
=
,
:to
=>
:routes
def
initialize
super
@initialized
=
false
end
# This method is called just after an application inherits from Rails::Application,
# allowing the developer to load classes in lib and use them during application
# configuration.
...
...
railties/lib/rails/application/bootstrap.rb
浏览文件 @
44f07098
...
...
@@ -28,7 +28,7 @@ module Bootstrap
logger
.
level
=
ActiveSupport
::
BufferedLogger
.
const_get
(
config
.
log_level
.
to_s
.
upcase
)
logger
.
auto_flushing
=
false
if
Rails
.
env
.
production?
logger
rescue
StandardError
=>
e
rescue
StandardError
logger
=
ActiveSupport
::
BufferedLogger
.
new
(
STDERR
)
logger
.
level
=
ActiveSupport
::
BufferedLogger
::
WARN
logger
.
warn
(
...
...
railties/lib/rails/engine.rb
浏览文件 @
44f07098
...
...
@@ -360,6 +360,7 @@ def inherited(base)
end
def
endpoint
(
endpoint
=
nil
)
@endpoint
||=
nil
@endpoint
=
endpoint
if
endpoint
@endpoint
end
...
...
railties/lib/rails/plugin.rb
浏览文件 @
44f07098
...
...
@@ -74,7 +74,8 @@ def config
initializer
:load_init_rb
,
:before
=>
:load_config_initializers
do
|
app
|
init_rb
=
File
.
expand_path
(
"init.rb"
,
root
)
if
File
.
file?
(
init_rb
)
config
=
app
.
config
# FIXME: do we call this for side effects??
app
.
config
# TODO: think about evaling initrb in context of Engine (currently it's
# always evaled in context of Rails::Application)
eval
(
File
.
read
(
init_rb
),
binding
,
init_rb
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录