Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
9b288a70
Commit
9b288a70
authored
May 31, 2019
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove render_if_exists partial caveat
parent
8ab0db4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
doc/development/ee_features.md
doc/development/ee_features.md
+0
-9
No files found.
doc/development/ee_features.md
View file @
9b288a70
...
@@ -459,15 +459,6 @@ Resolving an EE template path that is relative to the CE view path will not work
...
@@ -459,15 +459,6 @@ Resolving an EE template path that is relative to the CE view path will not work
=
render_if_exists
'projects/button'
# Will render `ee/app/views/projects/_button`
=
render_if_exists
'projects/button'
# Will render `ee/app/views/projects/_button`
```
```
You should not explicitly set render options like
`partial`
or provide a
`locals`
hash.
The first argument should be a path string and the second can be a hash replacing
`locals`
.
```
ruby
render
partial:
'projects/button'
,
locals:
{
project:
project
}
# becomes
render_if_exists
'projects/button'
,
project:
project
```
#### Using `render_ce`
#### Using `render_ce`
For
`render`
and
`render_if_exists`
, they search for the EE partial first,
For
`render`
and
`render_if_exists`
, they search for the EE partial first,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment