faalis 0.21.0 → 0.21.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/faalis/api_controller.rb +5 -0
- data/lib/faalis/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14da634aef8853abbd8af125b967c93b01c6e193
|
4
|
+
data.tar.gz: dd943a9315c2d293c90dc709bbd50fd4225a1b11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9956fb8de054298606c4e51bd4cb259d140cf75203b3eb85c6f663789f447ad4109fae8745b5c978b4b14c4fd61fcb8d03b230d6622524448d4f821445eba028
|
7
|
+
data.tar.gz: 8fec4fb4f4858e8ff667c1b42a13833cc34a5b8eee6a60c41d158b491a5f5020a418311e7c5ed225b723d7e578857961afc183214d060ccfc8effc360d749344
|
@@ -32,6 +32,11 @@ class Faalis::APIController < Faalis::ApplicationController
|
|
32
32
|
# Authenticate user before any action take place
|
33
33
|
before_filter :authenticate
|
34
34
|
|
35
|
+
# Check for any presence of filtering query, In querystring and load
|
36
|
+
# resource using them
|
37
|
+
before_filter :load_resource_by_query, :only => [:index]
|
38
|
+
|
39
|
+
|
35
40
|
protect_from_forgery
|
36
41
|
|
37
42
|
# Set csrf cookie after any action
|
data/lib/faalis/version.rb
CHANGED