After login path now uses stored location. Fixes #305.
This commit is contained in:
parent
fd42d1fabc
commit
6d3dd1d91e
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user