Commit d1166a9a by ivan Lan

Let merchant order controller show the orders he owns

parent 198c2bdd
...@@ -8,6 +8,10 @@ module Shotengai ...@@ -8,6 +8,10 @@ module Shotengai
before_action :manager_auth before_action :manager_auth
remove_actions :create, :destroy remove_actions :create, :destroy
def default_query resources
@manager.orders
end
def index_query resources def index_query resources
resources.status_is(params[:status]) resources.status_is(params[:status])
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment