After login path now uses stored location. Fixes #305.

This commit is contained in:
Mario Visic 2012-03-03 23:25:00 +08:00
parent fd42d1fabc
commit 6d3dd1d91e
2 changed files with 1 additions and 2 deletions

View File

@ -12,7 +12,7 @@ module Admin
protected
def after_sign_in_path_for(resource)
admin_pages_url
stored_location_for(resource) || admin_pages_url
end
def after_sign_out_path_for(resource)

View File

@ -46,7 +46,6 @@ When /^I login with my admin account$/ do
end
Then /^I should be redirected the the admin page I was attempting to access$/ do
save_and_open_page
current_path.should == edit_admin_current_site_path
end