Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added guard-stubs for show & index actions

  • Loading branch information...
commit 38cb290ca5b110e7e22be756eeac9479dfbab163 1 parent 3e6cbcb
@romul authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 app/controllers/spree/addresses_controller.rb
View
8 app/controllers/spree/addresses_controller.rb
@@ -3,6 +3,14 @@ class Spree::AddressesController < Spree::StoreController
rescue_from ActiveRecord::RecordNotFound, :with => :render_404
load_and_authorize_resource :class => Spree::Address
+ def index
+ redirect_to account_path
+ end
+
+ def show
+ redirect_to account_path
+ end
+
def edit
session["user_return_to"] = request.env['HTTP_REFERER']
end
Please sign in to comment.
Something went wrong with that request. Please try again.