Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
36dd1857
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,发现更多精彩内容 >>
提交
36dd1857
编写于
5月 11, 2012
作者:
S
Santiago Pastorino
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove useless load path modifications
上级
a00228c1
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
4 addition
and
38 deletion
+4
-38
actionmailer/lib/action_mailer.rb
actionmailer/lib/action_mailer.rb
+0
-3
actionmailer/test/abstract_unit.rb
actionmailer/test/abstract_unit.rb
+0
-3
actionpack/lib/abstract_controller.rb
actionpack/lib/abstract_controller.rb
+0
-3
actionpack/lib/action_dispatch.rb
actionpack/lib/action_dispatch.rb
+0
-6
actionpack/test/abstract_unit.rb
actionpack/test/abstract_unit.rb
+0
-6
actionpack/test/ts_isolated.rb
actionpack/test/ts_isolated.rb
+0
-3
activemodel/lib/active_model.rb
activemodel/lib/active_model.rb
+0
-2
activemodel/test/cases/helper.rb
activemodel/test/cases/helper.rb
+0
-3
activesupport/test/abstract_unit.rb
activesupport/test/abstract_unit.rb
+0
-3
activesupport/test/ts_isolated.rb
activesupport/test/ts_isolated.rb
+0
-2
railties/Rakefile
railties/Rakefile
+2
-1
railties/test/isolation/abstract_unit.rb
railties/test/isolation/abstract_unit.rb
+2
-3
未找到文件。
actionmailer/lib/action_mailer.rb
浏览文件 @
36dd1857
...
...
@@ -21,9 +21,6 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
actionpack_path
=
File
.
expand_path
(
'../../../actionpack/lib'
,
__FILE__
)
$:
.
unshift
(
actionpack_path
)
if
File
.
directory?
(
actionpack_path
)
&&
!
$:
.
include?
(
actionpack_path
)
require
'abstract_controller'
require
'action_view'
require
'action_mailer/version'
...
...
actionmailer/test/abstract_unit.rb
浏览文件 @
36dd1857
...
...
@@ -8,9 +8,6 @@
Encoding
.
default_external
=
"UTF-8"
end
lib
=
File
.
expand_path
(
"
#{
File
.
dirname
(
__FILE__
)
}
/../lib"
)
$:
.
unshift
(
lib
)
unless
$:
.
include?
(
'lib'
)
||
$:
.
include?
(
lib
)
require
'minitest/autorun'
require
'action_mailer'
require
'action_mailer/test_case'
...
...
actionpack/lib/abstract_controller.rb
浏览文件 @
36dd1857
activesupport_path
=
File
.
expand_path
(
'../../../activesupport/lib'
,
__FILE__
)
$:
.
unshift
(
activesupport_path
)
if
File
.
directory?
(
activesupport_path
)
&&
!
$:
.
include?
(
activesupport_path
)
require
'action_pack'
require
'active_support/concern'
require
'active_support/dependencies/autoload'
...
...
actionpack/lib/action_dispatch.rb
浏览文件 @
36dd1857
...
...
@@ -21,12 +21,6 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
activesupport_path
=
File
.
expand_path
(
'../../../activesupport/lib'
,
__FILE__
)
$:
.
unshift
(
activesupport_path
)
if
File
.
directory?
(
activesupport_path
)
&&
!
$:
.
include?
(
activesupport_path
)
activemodel_path
=
File
.
expand_path
(
'../../../activemodel/lib'
,
__FILE__
)
$:
.
unshift
(
activemodel_path
)
if
File
.
directory?
(
activemodel_path
)
&&
!
$:
.
include?
(
activemodel_path
)
require
'active_support'
require
'active_support/dependencies/autoload'
require
'active_support/core_ext/module/attribute_accessors'
...
...
actionpack/test/abstract_unit.rb
浏览文件 @
36dd1857
require
File
.
expand_path
(
'../../../load_paths'
,
__FILE__
)
lib
=
File
.
expand_path
(
"
#{
File
.
dirname
(
__FILE__
)
}
/../lib"
)
$:
.
unshift
(
lib
)
unless
$:
.
include?
(
'lib'
)
||
$:
.
include?
(
lib
)
activemodel_path
=
File
.
expand_path
(
'../../../activemodel/lib'
,
__FILE__
)
$:
.
unshift
(
activemodel_path
)
if
File
.
directory?
(
activemodel_path
)
&&
!
$:
.
include?
(
activemodel_path
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/lib'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/helpers'
)
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/fixtures/alternate_helpers'
)
...
...
actionpack/test/ts_isolated.rb
浏览文件 @
36dd1857
$:
.
unshift
(
File
.
dirname
(
__FILE__
))
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/../../activesupport/lib'
)
require
'minitest/autorun'
require
'rbconfig'
require
'abstract_unit'
...
...
activemodel/lib/active_model.rb
浏览文件 @
36dd1857
...
...
@@ -21,8 +21,6 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
activesupport_path
=
File
.
expand_path
(
'../../../activesupport/lib'
,
__FILE__
)
$:
.
unshift
(
activesupport_path
)
if
File
.
directory?
(
activesupport_path
)
&&
!
$:
.
include?
(
activesupport_path
)
require
'active_support'
require
'active_model/version'
...
...
activemodel/test/cases/helper.rb
浏览文件 @
36dd1857
require
File
.
expand_path
(
'../../../../load_paths'
,
__FILE__
)
lib
=
File
.
expand_path
(
"
#{
File
.
dirname
(
__FILE__
)
}
/../../lib"
)
$:
.
unshift
(
lib
)
unless
$:
.
include?
(
'lib'
)
||
$:
.
include?
(
lib
)
require
'config'
require
'active_model'
require
'active_support/core_ext/string/access'
...
...
activesupport/test/abstract_unit.rb
浏览文件 @
36dd1857
...
...
@@ -7,9 +7,6 @@
$VERBOSE
=
old
end
lib
=
File
.
expand_path
(
"
#{
File
.
dirname
(
__FILE__
)
}
/../lib"
)
$:
.
unshift
(
lib
)
unless
$:
.
include?
(
'lib'
)
||
$:
.
include?
(
lib
)
require
'active_support/core_ext/kernel/reporting'
require
'active_support/core_ext/string/encoding'
...
...
activesupport/test/ts_isolated.rb
浏览文件 @
36dd1857
$:
.
unshift
(
File
.
dirname
(
__FILE__
)
+
'/../../activesupport/lib'
)
require
'minitest/autorun'
require
'active_support/test_case'
require
'rbconfig'
...
...
railties/Rakefile
浏览文件 @
36dd1857
...
...
@@ -20,7 +20,8 @@ namespace :test do
'test'
,
'lib'
,
"
#{
File
.
dirname
(
__FILE__
)
}
/../activesupport/lib"
,
"
#{
File
.
dirname
(
__FILE__
)
}
/../actionpack/lib"
"
#{
File
.
dirname
(
__FILE__
)
}
/../actionpack/lib"
,
"
#{
File
.
dirname
(
__FILE__
)
}
/../activemodel/lib"
]
ruby
"-I
#{
dash_i
.
join
':'
}
"
,
file
end
...
...
railties/test/isolation/abstract_unit.rb
浏览文件 @
36dd1857
...
...
@@ -17,8 +17,8 @@
# These files do not require any others and are needed
# to run the tests
require
"
#{
RAILS_FRAMEWORK_ROOT
}
/activesupport/lib/
active_support/testing/isolation"
require
"
#{
RAILS_FRAMEWORK_ROOT
}
/activesupport/lib/
active_support/core_ext/kernel/reporting"
require
"active_support/testing/isolation"
require
"active_support/core_ext/kernel/reporting"
module
TestHelpers
module
Paths
...
...
@@ -248,7 +248,6 @@ def controller(name, contents)
def
use_frameworks
(
arr
)
to_remove
=
[
:actionmailer
,
:activemodel
,
:activerecord
]
-
arr
if
to_remove
.
include?
:activerecord
remove_from_config
"config.active_record.whitelist_attributes = true"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录