active_model-attribute 0.0.2 → 0.0.3

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: 85c719dfcf136001c87913a016b55757e1dd406b
4
- data.tar.gz: 1cd1c057b22067bf047b289ac85276486062c592
3
+ metadata.gz: ef489cc01dd8d4da1cb9d9f4d9e4b270bf1f980e
4
+ data.tar.gz: '0187d78f205c2b380a292c0a994c1e26ef9ca0cc'
5
5
  SHA512:
6
- metadata.gz: 6bfd87e04203cbac2e0f342e49920d2bfa9040ad547a2452cc7573c2f723c8eb5544232a27bab1d9b8608e826804f3aafb5f907a75b8c23211d218c821d19f67
7
- data.tar.gz: ae3b1ef0c13ca8db9ebd1112876dc34abb2136c255d54f8c206e31f468f474c2e4a87ebc2838f817783341711f317cf9d135d8d8c22d43268aac3908d77ab6d1
6
+ metadata.gz: 40e598b7715bccc4841c99d3b4d2f2b3b121774b11c0b086fd408ebc8c06ddac9f44281e88fe15b9f25d10da2561dc751d7c8c03086e8f8b053d7579936dd0a4
7
+ data.tar.gz: 519bd720dc60c5a7af40ef7c05c2bef12a07159ab7d18b0e23efc0dde2363c1f5ca9a7d2a0ab3762b24dccc7a657646cc248a7ca40a6cc3e8bdfe5ce46e8a4a9
@@ -25,7 +25,7 @@ module ActiveModel
25
25
  def attribute(name, type, **options)
26
26
  return if attributes.include?(name)
27
27
 
28
- attributes << name unless options[:virtual]
28
+ attributes << name unless options.delete(:virtual)
29
29
 
30
30
  getter = name.to_sym
31
31
  setter = :"#{name}="
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_model-attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Rodríguez