apicasso 0.5.0 → 0.5.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/concerns/sql_security.rb +1 -1
- data/lib/apicasso/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: 6e16099f064f08410c411c8cb15ae8f42a98d72bf9f1d4074a4eca1be433e0c5
|
4
|
+
data.tar.gz: 01e3b2057732f1d5b759ff79dd162da5c5ea2eaab9fc8753d6ca9d653df9581f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c1e4a81430c15ec3ffcd27901634a4d90ee8f8791a8de0826bc35429acf33ffb7af36cb757484362392cb54664f5107043915fe2d7876549f368e7ea186f0c
|
7
|
+
data.tar.gz: 99411eca02f4c3e284796940e5c75b58607718010a22c9dac62a88c18687c5ff9d8f359240cd624bbc8af8482eb282be63b7c0d99955fce8b4fc7d68fcd0d67e
|
@@ -56,7 +56,7 @@ module SqlSecurity
|
|
56
56
|
# Check if value for current class is valid for API consumption
|
57
57
|
def safe_for_sql?(klass, value)
|
58
58
|
klass.column_names.include?(value) ||
|
59
|
-
DESCENDANTS_UNDERSCORED.include?(value) ||
|
59
|
+
DESCENDANTS_UNDERSCORED.include?(value.singularize) ||
|
60
60
|
klass.new.respond_to?(value) ||
|
61
61
|
klass.reflect_on_all_associations.map(&:name).include?(value)
|
62
62
|
end
|
data/lib/apicasso/version.rb
CHANGED