Skip to content

Commit

Permalink
fixed devise email and default_host #19
Browse files Browse the repository at this point in the history
  • Loading branch information
Duke committed May 5, 2013
1 parent 83c595e commit f8f2ee2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

config.action_mailer.delivery_method = :letter_opener

config.action_mailer.default_url_options = { :host => "localhost:3000" }

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

Expand Down
3 changes: 3 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test

config.action_mailer.default_url_options = { :host => "localhost:3000" }


# Raise exception on mass assignment protection for Active Record models
config.active_record.mass_assignment_sanitizer = :strict

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
config.mailer_sender = "noreply@adoteumpedido.info"

# Configure the class responsible to send e-mails.
# config.mailer = "Devise::Mailer"
Expand Down

0 comments on commit f8f2ee2

Please sign in to comment.