Class: Admin::Shop::OrdersController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::Shop::OrdersController
- Defined in:
- app/controllers/admin/shop/orders_controller.rb
Instance Method Summary collapse
-
#export ⇒ Object
You can overide this to export what you desire.
-
#load_models ⇒ Object
Applies a scope to the orders result based on the params status.
- #resource_controller_loads_models ⇒ Object
Instance Method Details
#export ⇒ Object
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_models ⇒ Object
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_models ⇒ Object
15 |
# File 'app/controllers/admin/shop/orders_controller.rb', line 15 alias_method :resource_controller_loads_models, :load_models |