Skip to content

Commit

Permalink
remove dependency on root_path, use '/' instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Croak committed Jan 19, 2010
1 parent e165e72 commit f4df580
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.textile
Expand Up @@ -5,6 +5,7 @@ more control to the application developer. (Dan Croak)
* removed attr_accessible from Clearance::User. (Dan Croak)
* fixed bug in password reset feature. (Dan Croak)
* use Jeweler for gemming. (Dan Croak)
* remove dependency on root_path, use '/' instead. (Dan Croak)

h2. 0.8.4 (10/08/2009)

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/clearance/confirmations_controller.rb
Expand Up @@ -66,7 +66,7 @@ def flash_already_confirmed
end

def url_after_create
root_url
'/'
end

def url_already_confirmed
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/clearance/passwords_controller.rb
Expand Up @@ -79,6 +79,6 @@ def flash_success_after_update
end

def url_after_update
root_url
'/'
end
end
2 changes: 1 addition & 1 deletion app/controllers/clearance/sessions_controller.rb
Expand Up @@ -53,7 +53,7 @@ def flash_notice_after_create
end

def url_after_create
root_url
'/'
end

def flash_success_after_destroy
Expand Down
6 changes: 1 addition & 5 deletions generators/clearance/templates/README
Expand Up @@ -15,11 +15,7 @@ The constant is used by mailers to generate URLs in emails.

DO_NOT_REPLY = "donotreply@example.com"

3. Define root_url to *something* in your config/routes.rb:

map.root :controller => 'home'

4. Migrate:
3. Migrate:

rake db:migrate

Expand Down
2 changes: 1 addition & 1 deletion lib/clearance/authentication.rb
Expand Up @@ -123,7 +123,7 @@ def clear_return_to
end

def redirect_to_root
redirect_to(root_url)
redirect_to('/')
end
end

Expand Down

0 comments on commit f4df580

Please sign in to comment.