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
|
protected
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
admin_pages_url
|
stored_location_for(resource) || admin_pages_url
|
||||||
end
|
end
|
||||||
|
|
||||||
def after_sign_out_path_for(resource)
|
def after_sign_out_path_for(resource)
|
||||||
|
@ -46,7 +46,6 @@ When /^I login with my admin account$/ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
Then /^I should be redirected the the admin page I was attempting to access$/ do
|
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
|
current_path.should == edit_admin_current_site_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user