Skip to content

Commit

Permalink
shell for configure block in new clearance initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Jan 20, 2010
1 parent f4df580 commit e516323
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
18 changes: 6 additions & 12 deletions generators/clearance/templates/README
Expand Up @@ -3,20 +3,14 @@

Next:

1. Define a HOST constant in your environments files.
In config/environments/test.rb and config/environments/development.rb it can be:
1. Configure default url options for the mailer to generate URLs in emails.
In production.rb it must be the actual host your application is deployed to.
In config/environments/test.rb and config/environments/development.rb:

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

In production.rb it must be the actual host your application is deployed to.
The constant is used by mailers to generate URLs in emails.
2. Migrate:

2. In config/environment.rb:

DO_NOT_REPLY = "donotreply@example.com"

3. Migrate:

rake db:migrate
rake db:migrate

*******************************************************************************
3 changes: 3 additions & 0 deletions generators/clearance/templates/clearance.rb
@@ -0,0 +1,3 @@
# Clearance.configure do |config|
# config.mailer_sender 'donotreply@example.com'
# end
Empty file added lib/clearance/configuration.rb
Empty file.

0 comments on commit e516323

Please sign in to comment.