Class: Spree::Admin::StockMovementsController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/stock_movements_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



9
10
11
12
13
14
# File 'app/controllers/spree/admin/stock_movements_controller.rb', line 9

def index
  params[:q] ||= {}

  @search = collection.ransack(params[:q])
  @stock_movements = @search.result.page(params[:page])
end