thecore_api 1.4.5 → 1.4.6
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 +1 -1
- data/lib/thecore_api/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: 664127d455cafb67edf696bb0d5a793414cfdac234f558b6736d4f1f472b2f6c
|
4
|
+
data.tar.gz: 1c47bcd0a324d4956a88547c70edee90648f0e43af50c26a83d67d271a30a00f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 246d14ab51587d5895b2001a4f3e341f3ec0918d872682537d023b371cb5cbe2a2ce057daff71bd4da6ce4f84c9679b6dbe023afc687d23feb7811c1016a8a98
|
7
|
+
data.tar.gz: c4a0cf0590350dbfab746a3b877706785e2b087dc197da85774f29d2d998c893b53615e7e120aa7661cd5b0f7b8d917c44c95dece3134a8d40cb22ebe4612b17
|
@@ -268,7 +268,7 @@ class Api::V1::BaseController < ActionController::API
|
|
268
268
|
|
269
269
|
def find_model path=nil
|
270
270
|
# Find the name of the model from controller
|
271
|
-
path ||= params[:path].split("/").first
|
271
|
+
path ||= (params[:path].split("/").first rescue nil)
|
272
272
|
@model = (path.presence || controller_path).classify.constantize rescue controller_name.classify.constantize rescue nil
|
273
273
|
end
|
274
274
|
|
data/lib/thecore_api/version.rb
CHANGED