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
Tatuya Kamada
gitlab-ce
Commits
2682c588
Commit
2682c588
authored
Mar 22, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Customize ActionMailer preview path
parent
f96127bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
config/environments/development.rb
config/environments/development.rb
+1
-0
spec/mailers/previews/devise_mailer_preview.rb
spec/mailers/previews/devise_mailer_preview.rb
+11
-0
No files found.
config/environments/development.rb
View file @
2682c588
...
...
@@ -39,6 +39,7 @@ Rails.application.configure do
config
.
action_mailer
.
delivery_method
=
:letter_opener_web
# Don't make a mess when bootstrapping a development environment
config
.
action_mailer
.
perform_deliveries
=
(
ENV
[
'BOOTSTRAP'
]
!=
'1'
)
config
.
action_mailer
.
preview_path
=
'spec/mailers/previews'
config
.
eager_load
=
false
end
spec/mailers/previews/devise_mailer_preview.rb
0 → 100644
View file @
2682c588
class
DeviseMailerPreview
<
ActionMailer
::
Preview
def
confirmation_instructions_for_signup
user
=
User
.
new
(
email:
'signup@example.com'
)
DeviseMailer
.
confirmation_instructions
(
user
,
'faketoken'
,
{})
end
def
confirmation_instructions_for_new_email
user
=
User
.
last
DeviseMailer
.
confirmation_instructions
(
user
,
'faketoken'
,
{})
end
end
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