active_record_api-rest 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22ce247d0acae1c5bb22947063296a614289602b9e0d5140b2f155f284970449
|
4
|
+
data.tar.gz: 5cc534ab4272636f7125ec32575d69063b82236f7739b7721884bef51e11551a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9222655c33fbf8991927ba8ab57d46b870f396ae85052e00597a30e7886bfdeeab0a719a37cab221e4fbda5455d248394c54ceb3fb31b2271e72b5a8ec0b2f9
|
7
|
+
data.tar.gz: '0059cedbe396572fc1f1412c4914025f563d7aad457202efc566b903539de3cf6d87a68663caee7aab9a0b003905502148dda4931bee69de4810dd52b9b41d02'
|
@@ -32,7 +32,7 @@ module ActiveRecordApi
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def scope
|
35
|
-
@scope ||= scope_klass.new(session: session, model_klass: model_klass, action_name: action_name)
|
35
|
+
@scope ||= scope_klass.new(session: session, model_klass: model_klass, action_name: action_name, queryable_params: queryable_params, modifiable_params: modifiable_params)
|
36
36
|
end
|
37
37
|
|
38
38
|
def scope_klass
|
@@ -3,7 +3,7 @@ module ActiveRecordApi
|
|
3
3
|
module Auth
|
4
4
|
class Scope
|
5
5
|
include ActiveAttr::Model
|
6
|
-
attr_accessor :session, :model_klass, :action_name
|
6
|
+
attr_accessor :session, :model_klass, :action_name, :modifiable_params, :queryable_params
|
7
7
|
|
8
8
|
def authorized_models
|
9
9
|
send(action_name)
|