Permalink
Browse files

Added guard-stubs for show & index actions

  • Loading branch information...
1 parent 3e6cbcb commit 38cb290ca5b110e7e22be756eeac9479dfbab163 @romul romul committed Feb 20, 2013
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

0 comments on commit 38cb290

Please sign in to comment.