active_model-attribute 0.0.3 → 0.0.4

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: ef489cc01dd8d4da1cb9d9f4d9e4b270bf1f980e
4
- data.tar.gz: '0187d78f205c2b380a292c0a994c1e26ef9ca0cc'
3
+ metadata.gz: d95747a10423b764cf2bf709a6fd40ac575da3cf
4
+ data.tar.gz: 4f58b52e8e850770d93bbb6792394e0d488c45f9
5
5
  SHA512:
6
- metadata.gz: 40e598b7715bccc4841c99d3b4d2f2b3b121774b11c0b086fd408ebc8c06ddac9f44281e88fe15b9f25d10da2561dc751d7c8c03086e8f8b053d7579936dd0a4
7
- data.tar.gz: 519bd720dc60c5a7af40ef7c05c2bef12a07159ab7d18b0e23efc0dde2363c1f5ca9a7d2a0ab3762b24dccc7a657646cc248a7ca40a6cc3e8bdfe5ce46e8a4a9
6
+ metadata.gz: 704fc0632f75dbf3c28c93ab0580e2b2e3f16bb8da6cfdba0d0171ec889b22865e72a78878cb214e89ce90f38768b2b984d03812f071075d416fd58aae7b63f7
7
+ data.tar.gz: b0d7700ceb94fb6ba6ba6cb0e81b23f3ea92032e80dfc693d3b3475b5cc97c3f0ac7b6fda2e3c0b2bc4302c7c7364ba9cc4fec8ed96851c60465bda5931fcc7b
@@ -23,9 +23,7 @@ module ActiveModel
23
23
  end
24
24
 
25
25
  def attribute(name, type, **options)
26
- return if attributes.include?(name)
27
-
28
- attributes << name unless options.delete(:virtual)
26
+ attributes << name unless attributes.include?(name)
29
27
 
30
28
  getter = name.to_sym
31
29
  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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Rodríguez