Class: Spree::Admin::StoresController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/stores_controller.rb

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, #create, #destroy, #edit, #new, #update, #update_positions

Methods included from SetsUserLanguageLocaleKey

#set_user_language_locale_key

Instance Method Details

#indexObject



6
7
8
9
10
11
12
# File 'app/controllers/spree/admin/stores_controller.rb', line 6

def index
  if Spree::Store.count == 1
    redirect_to edit_admin_store_path(Spree::Store.first)
  else
    @stores = Spree::Store.all
  end
end