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
Jérome Perrin
gitlab-ce
Commits
c8338193
Commit
c8338193
authored
Jul 06, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move spec/mailers/previews to app/mailers/previews
parent
34fe3274
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
3 deletions
+3
-3
app/mailers/previews/devise_mailer_preview.rb
app/mailers/previews/devise_mailer_preview.rb
+0
-0
app/mailers/previews/email_rejection_mailer_preview.rb
app/mailers/previews/email_rejection_mailer_preview.rb
+0
-0
app/mailers/previews/notify_preview.rb
app/mailers/previews/notify_preview.rb
+0
-0
app/mailers/previews/repository_check_mailer_preview.rb
app/mailers/previews/repository_check_mailer_preview.rb
+0
-0
config/environments/development.rb
config/environments/development.rb
+1
-1
doc/development/emails.md
doc/development/emails.md
+2
-2
No files found.
spec
/mailers/previews/devise_mailer_preview.rb
→
app
/mailers/previews/devise_mailer_preview.rb
View file @
c8338193
File moved
spec
/mailers/previews/email_rejection_mailer_preview.rb
→
app
/mailers/previews/email_rejection_mailer_preview.rb
View file @
c8338193
File moved
spec
/mailers/previews/notify_preview.rb
→
app
/mailers/previews/notify_preview.rb
View file @
c8338193
File moved
spec
/mailers/previews/repository_check_mailer_preview.rb
→
app
/mailers/previews/repository_check_mailer_preview.rb
View file @
c8338193
File moved
config/environments/development.rb
View file @
c8338193
...
@@ -39,7 +39,7 @@ Rails.application.configure do
...
@@ -39,7 +39,7 @@ Rails.application.configure do
config
.
action_mailer
.
delivery_method
=
:letter_opener_web
config
.
action_mailer
.
delivery_method
=
:letter_opener_web
# Don't make a mess when bootstrapping a development environment
# Don't make a mess when bootstrapping a development environment
config
.
action_mailer
.
perform_deliveries
=
(
ENV
[
'BOOTSTRAP'
]
!=
'1'
)
config
.
action_mailer
.
perform_deliveries
=
(
ENV
[
'BOOTSTRAP'
]
!=
'1'
)
config
.
action_mailer
.
preview_path
=
'
spec
/mailers/previews'
config
.
action_mailer
.
preview_path
=
'
app
/mailers/previews'
config
.
eager_load
=
false
config
.
eager_load
=
false
...
...
doc/development/emails.md
View file @
c8338193
...
@@ -10,12 +10,12 @@ To view rendered emails "sent" in your development instance, visit
...
@@ -10,12 +10,12 @@ To view rendered emails "sent" in your development instance, visit
Rails provides a way to preview our mailer templates in HTML and plaintext using
Rails provides a way to preview our mailer templates in HTML and plaintext using
dummy data.
dummy data.
The previews live in
[
`
spec
/mailers/previews`
][
previews
]
and can be viewed at
The previews live in
[
`
app
/mailers/previews`
][
previews
]
and can be viewed at
[
`/rails/mailers`
](
http://localhost:3000/rails/mailers
)
.
[
`/rails/mailers`
](
http://localhost:3000/rails/mailers
)
.
See the [Rails guides] for more info.
See the [Rails guides] for more info.
[
previews
]:
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/
spec
/mailers/previews
[
previews
]:
https://gitlab.com/gitlab-org/gitlab-ce/tree/master/
app
/mailers/previews
[
Rails guides
]:
http://guides.rubyonrails.org/action_mailer_basics.html#previewing-emails
[
Rails guides
]:
http://guides.rubyonrails.org/action_mailer_basics.html#previewing-emails
## Incoming email
## Incoming email
...
...
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