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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6158db284d9f46015ddd533a5483c1440cee885f
4
- data.tar.gz: '0759e58f7a18ae83f44937bfd0f87f501cbf19b2'
3
+ metadata.gz: dcdcb60e62b3dba20548d2cff2fb88c975d8028a
4
+ data.tar.gz: cb95ad350b9ae47790c55846fc488d1a7a9fe10f
5
5
  SHA512:
6
- metadata.gz: f17e0e2e0feeffee8855c7962733276c202928dd6da55d16908d4eed02371a7440dbbfcdf4d7dc6eafc317195885f91e7ce3bd173e549f3cec26797cbbab48dd
7
- data.tar.gz: 776daf1035c250aab3d595e4c1e543958b1ef51ee720d43687682e4fd593377b57a04a3ea363d5e6a7865bcc17ec6ae8074400a651f5f6b4ca8096a93afda0d9
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])
@@ -1,3 +1,3 @@
1
1
  module ThecoreApi
2
- VERSION = "1.1.17".freeze
2
+ VERSION = "1.1.18".freeze
3
3
  end
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.17
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-05 00:00:00.000000000 Z
11
+ date: 2018-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore