Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
variable name is authentication_routes, not authenticated_routes
  • Loading branch information
radar committed May 30, 2012
1 parent 4c5e1e7 commit 911f410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/spree/core/controller_helpers.rb
Expand Up @@ -57,7 +57,7 @@ def store_location
# disallow return to login, logout, signup pages # disallow return to login, logout, signup pages
authentication_routes = [:spree_signup_path, :spree_login_path, :spree_logout_path] authentication_routes = [:spree_signup_path, :spree_login_path, :spree_logout_path]
disallowed_urls = [] disallowed_urls = []
authenticated_routes.each do |route| authentication_routes.each do |route|
if respond_to?(route) if respond_to?(route)
disallowed_urls << send(route) disallowed_urls << send(route)
end end
Expand Down

0 comments on commit 911f410

Please sign in to comment.