enum_attributes_validation 0.1.3 → 0.1.5

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: 692265507e59f62f9d269848487a62fd4330b38d
4
- data.tar.gz: 47ff54dca187b497584b08b4a69c3b393b68f2ca
3
+ metadata.gz: eed35f8975e88da59799c9a0b5a7d19b02c8ca7d
4
+ data.tar.gz: 85edbfc87a7659119da0026eedb89b0eca189402
5
5
  SHA512:
6
- metadata.gz: 638ab3409b5dfc6909dbb436ff033c31e0633bcac5fbd5c0c94f1ffa44438ab03dfcc2a8552b5745c75145f99b1e11e59f0c9488d1e1a33659ad71d2e2478e97
7
- data.tar.gz: ace216c124f797afb64bdddbe7e02d8f628e011299431b22353c9ab4a340704e51242d2fe70ef6a152cee89e11ce80f9fe642d11e4f021b423b5154dab89a287
6
+ metadata.gz: e3fc1d9ad49012fa445ce4198db2c19481089a281a11f17b56d26a093f196bb64df11e3566730f812ace372e2fe56fc8911f95ff0473af529c925d32c6428c9b
7
+ data.tar.gz: e8e9f75fc20545aef52d7fb819c3351a38983d79c534894cc4b08660b8fbba4c8d0e14eb1a31f74eeccd382bada953aab92e67d5ad73108ec8376210f10ddb51
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enum_attributes_validation (0.1.2)
4
+ enum_attributes_validation (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -30,8 +30,8 @@ module EnumAttributesValidation
30
30
 
31
31
  define_method (string_attribute+"=").to_sym do |argument|
32
32
  string_argument = argument.to_s
33
- self[string_attribute] = string_argument if User.send(string_attribute.pluralize).keys.include?(string_argument)
34
- self.enum_invalid_attributes[attribute] = string_argument unless User.send(string_attribute.pluralize).keys.include?(string_argument)
33
+ self[string_attribute] = string_argument if self.send(string_attribute.pluralize).keys.include?(string_argument)
34
+ self.enum_invalid_attributes[attribute] = string_argument unless self.send(string_attribute.pluralize).keys.include?(string_argument)
35
35
  end
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module EnumAttributesValidation
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_attributes_validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cristi Stefan