thecore_api 1.1.17 → 1.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/api/v1/base_controller.rb +5 -0
- data/lib/thecore_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcdcb60e62b3dba20548d2cff2fb88c975d8028a
|
4
|
+
data.tar.gz: cb95ad350b9ae47790c55846fc488d1a7a9fe10f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4d30065f75bc9f3d574bbc0b96d01ca6eee267341ec298330e6b85717a62ce3149e7bb381cd9f715ed2970acd762ae5ab2bfe17ffa42e68d0e550708f133af7
|
7
|
+
data.tar.gz: b8eb9896611f58bfccc2aa8d1765f27f1cccb8262aa497ee7fdb390333812d7c0899d26088c37ebfff5f3f74436df289379f19fcf274cd3ad054bbcd81ecec03
|
@@ -26,6 +26,11 @@ class Api::V1::BaseController < ActionController::API
|
|
26
26
|
|
27
27
|
attr_accessor :current_user
|
28
28
|
|
29
|
+
#Disabling Strong Parameters
|
30
|
+
def params
|
31
|
+
request.parameters
|
32
|
+
end
|
33
|
+
|
29
34
|
def index
|
30
35
|
# find the records
|
31
36
|
@q = (@model.column_names.include?("user_id") ? @model.where(user_id: current_user.id) : @model).ransack(params[:q])
|
data/lib/thecore_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore
|