Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
9c886c18
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 搜索 >>
提交
9c886c18
编写于
5月 13, 2020
作者:
H
Haroon Ahmed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix wording in rail/engine class
上级
fa814e2c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
railties/lib/rails/engine.rb
railties/lib/rails/engine.rb
+7
-7
未找到文件。
railties/lib/rails/engine.rb
浏览文件 @
9c886c18
...
...
@@ -36,10 +36,10 @@ module Rails
#
# == Configuration
#
#
Besides the +Railtie+ configuration which is shared across the application, in a
#
<tt>Rails::Engine</tt> you can access <tt>autoload_paths</tt>, <tt>eager_load_paths</tt>
#
and <tt>autoload_once_paths</tt>, which, differently from a <tt>Railtie</tt>, are scoped to
#
the curren
t engine.
#
Like railties, engines can access a config object which contains configuration shared by
#
all railties and the application.
#
Additionally, each engine can access <tt>autoload_paths</tt>, <tt>eager_load_paths</tt> and
#
<tt>autoload_once_paths</tt> settings which are scoped to tha
t engine.
#
# class MyEngine < Rails::Engine
# # Add a load path for this specific Engine
...
...
@@ -113,7 +113,7 @@ module Rails
# == Endpoint
#
# An engine can also be a Rack application. It can be useful if you have a Rack application that
# you would like to
wrap with +Engine+ and
provide with some of the +Engine+'s features.
# you would like to provide with some of the +Engine+'s features.
#
# To do that, use the +endpoint+ method:
#
...
...
@@ -123,7 +123,7 @@ module Rails
# end
# end
#
# Now you can mount your engine in application's routes
just like that
:
# Now you can mount your engine in application's routes:
#
# Rails.application.routes.draw do
# mount MyEngine::Engine => "/engine"
...
...
@@ -314,7 +314,7 @@ module Rails
# helper MyEngine::Engine.helpers
# end
#
# It will include all of the helpers from engine's directory. Take into account th
at th
is does
# It will include all of the helpers from engine's directory. Take into account this does
# not include helpers defined in controllers with helper_method or other similar solutions,
# only helpers defined in the helpers directory will be included.
#
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录