Class: Admin::Shop::OrdersController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/admin/shop/orders_controller.rb

Instance Method Summary collapse

Instance Method Details

#exportObject

You can overide this to export what you desire



24
25
26
# File 'app/controllers/admin/shop/orders_controller.rb', line 24

def export
  
end

#load_modelsObject

Applies a scope to the orders result based on the params status



17
18
19
20
21
# File 'app/controllers/admin/shop/orders_controller.rb', line 17

def load_models
  model_class.scope_by_status(params[:status]) do
    resource_controller_loads_models
  end
end

#resource_controller_loads_modelsObject



15
# File 'app/controllers/admin/shop/orders_controller.rb', line 15

alias_method :resource_controller_loads_models, :load_models