cats_core 1.4.26 → 1.4.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/cats/core/stacks_controller.rb +2 -2
- data/config/routes.rb +1 -0
- data/lib/cats/core/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fddf0547d798ce7e1b0807f6a41c63d7b9d4cd65aa8647fcdfb67ca47326b41
|
4
|
+
data.tar.gz: 1784fbfd4ab5dd5af00f07c07dd2aef0f561d49381ab2bf8dbf4726dc9b3d85d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e67cd0b18c50abbd5d08698ad47312dfbc8b735327a3645906d16f60db5addb24edef7180a9adb2a1ce9c8ea69858e63dd600c3aaeb1767de3f022c3a2b598
|
7
|
+
data.tar.gz: d46af8e447713c4981e3b5d8796f246fc13c0a294b15239adbbeccede51b76e68f5e7d1d24ab9ecfb0f93f586f8f5d015396a0bc6dc51bca58d06ace5081f1c3
|
@@ -29,8 +29,8 @@ module Cats
|
|
29
29
|
|
30
30
|
def receipt_stacks
|
31
31
|
service = StackService.new
|
32
|
-
|
33
|
-
stacks = service.receipt_stacks(
|
32
|
+
authorization = ReceiptAuthorization.find(params[:id])
|
33
|
+
stacks = service.receipt_stacks(authorization.id)
|
34
34
|
render json: { success: true, data: serialize(stacks) }
|
35
35
|
end
|
36
36
|
|
data/config/routes.rb
CHANGED
@@ -135,6 +135,7 @@ Cats::Core::Engine.routes.draw do
|
|
135
135
|
get 'transactions', controller: :receipt_transactions, action: :index
|
136
136
|
get 'lost', controller: :lost_commodities, action: :index
|
137
137
|
get 'receipts', controller: :receipts, action: :index
|
138
|
+
get 'stacks', controller: :stacks, action: :receipt_stacks
|
138
139
|
post 'confirm', controller: :receipt_authorizations, action: :confirm
|
139
140
|
post 'stack'
|
140
141
|
end
|
data/lib/cats/core/version.rb
CHANGED