Skip to content

Commit

Permalink
update 'action_mailer' recipe to configuire test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielKehoe committed Feb 24, 2012
1 parent 4b2011c commit 835544f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.textile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ h1. CHANGELOG

h2. 1.1.5 unreleased

* update 'action_mailer' recipe to configuire test environment
* update 'action_mailer' recipe to configure test environment
* add 'confirmable' and 'invitable' options to 'devise' recipe
* change prompt for 'guard' recipe
* add 'rake db:test:prepare' to 'seed_database' recipe
Expand Down
6 changes: 3 additions & 3 deletions recipes/action_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
gsub_file 'config/environments/development.rb', /# Don't care if the mailer can't send/, '# ActionMailer Config'
gsub_file 'config/environments/development.rb', /config.action_mailer.raise_delivery_errors = false/ do
<<-RUBY
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.default_url_options = { :host => 'example.com' }
# A dummy setup for development - no deliveries, but logged
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = false
Expand All @@ -20,7 +20,7 @@
inject_into_file 'config/environments/development.rb', :before => "\nend" do
<<-RUBY
\n
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
config.action_mailer.default_url_options = { :host => 'example.com' }
end
RUBY
end
Expand All @@ -29,7 +29,7 @@
<<-RUBY
config.active_support.deprecation = :notify
config.action_mailer.default_url_options = { :host => 'yourhost.com' }
config.action_mailer.default_url_options = { :host => 'example.com' }
# ActionMailer Config
# Setup for production - deliveries, no errors raised
config.action_mailer.delivery_method = :smtp
Expand Down

0 comments on commit 835544f

Please sign in to comment.