Skip to content

Commit

Permalink
Merge pull request #960 from CommitChange/letter_opener
Browse files Browse the repository at this point in the history
add letter_opener in dev
  • Loading branch information
wwahammy authored Dec 12, 2024
2 parents f1c20e7 + 62b6194 commit 37000e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ group :development, :ci do
end

group :development, :ci, :test do
gem 'letter_opener'
gem 'timecop'
gem 'pry'
gem 'pry-byebug'
Expand Down
9 changes: 9 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ GEM
carrierwave-aws (1.4.0)
aws-sdk-s3 (~> 1.0)
carrierwave (>= 0.7, < 2.1)
childprocess (5.1.0)
logger (~> 1.5)
chronic (0.10.2)
coderay (1.1.3)
coercible (1.0.0)
Expand Down Expand Up @@ -296,6 +298,12 @@ GEM
kaminari-core (= 1.2.1)
kaminari-core (1.2.1)
kdtree (0.3)
launchy (3.0.1)
addressable (~> 2.8)
childprocess (~> 5.0)
letter_opener (1.10.0)
launchy (>= 2.2, < 4)
logger (1.6.2)
lograge (0.3.6)
actionpack (>= 3)
activesupport (>= 3)
Expand Down Expand Up @@ -559,6 +567,7 @@ DEPENDENCIES
js-routes
json (>= 2.3.0)
kaminari
letter_opener
lograge
mini_magick
nearest_time_zone
Expand Down
4 changes: 3 additions & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
# )
# config.action_mailer.delivery_method = :ses

config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true

config.action_mailer.default_url_options = { host: 'localhost', port: 5000}
config.action_mailer.delivery_method = Settings.mailer.delivery_method.to_sym
config.action_mailer.smtp_settings = { address: Settings.mailer.address, port: Settings.mailer.port }
config.action_mailer.smtp_settings['user_name']= Settings.mailer.username if Settings.mailer.username
config.action_mailer.smtp_settings['password']= Settings.mailer.password if Settings.mailer.password
Expand Down

0 comments on commit 37000e0

Please sign in to comment.