Skip to content
This repository has been archived by the owner on Dec 22, 2018. It is now read-only.

Commit

Permalink
Adding letter_opener gem to open emails in the browser in development.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiedl committed Mar 15, 2016
1 parent 4bc076b commit f77e796
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ gem 'byebug', group: [:development, :test]
group :development do
# Spring application pre-loader
gem 'spring'

# open sent emails in the browser
gem 'letter_opener'
end

group :test do
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
arel (6.0.3)
bcrypt (3.1.10)
builder (3.2.2)
Expand Down Expand Up @@ -121,6 +122,10 @@ GEM
thor (>= 0.14, < 2.0)
json (1.8.3)
jwt (1.5.1)
launchy (2.4.3)
addressable (~> 2.3)
letter_opener (1.4.1)
launchy (~> 2.2)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
Expand Down Expand Up @@ -260,6 +265,7 @@ DEPENDENCIES
http_accept_language
jbuilder (~> 2.2)
jquery-rails
letter_opener
mysql2
omniauth-google-oauth2
paperclip
Expand Down
4 changes: 4 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false

# Open emails in the browser.
# https://github.com/ryanb/letter_opener
config.action_mailer.delivery_method = :letter_opener

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down

0 comments on commit f77e796

Please sign in to comment.