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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c69ea3726ca2f477e0c3ad870e6ddd45d459d2fd689ff30b21796129456fd44
4
- data.tar.gz: 53ff5f82c45ea523dc06640d86d2dba6527eee0186d1f3e4c5c229a73c18d9bf
3
+ metadata.gz: 6e16099f064f08410c411c8cb15ae8f42a98d72bf9f1d4074a4eca1be433e0c5
4
+ data.tar.gz: 01e3b2057732f1d5b759ff79dd162da5c5ea2eaab9fc8753d6ca9d653df9581f
5
5
  SHA512:
6
- metadata.gz: 969ce221412890f90dfbc1f0fe2d9c885b5434c996d079ec1a03245a2df7f1ec81fd8685a5fba8c3dd3527699e3563a445bce42d37ec97c08d367dea17892701
7
- data.tar.gz: f90d4b572110090e97e3ad31007a0350cd7faaf0adfb5d167c3834a964ff07c7d5060f93072554edc4a14001ccbc94e2f5f83e560a4c377cdd46cb0656726ec3
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
@@ -1,3 +1,3 @@
1
1
  module Apicasso
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apicasso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Bellincanta