calculated_attributes 0.0.21 → 0.0.22

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: 21a523e5d620f5382b3af08ded6fff13f5e94ade
4
- data.tar.gz: d70290a340d2e4f41cf4d84b5127d7a2142e9530
3
+ metadata.gz: f5d1e1c6a85809abd342ec35a184d0ae2f7a18d2
4
+ data.tar.gz: f294bd5a311c92f6c4b14d6b4ed532c5a13117c6
5
5
  SHA512:
6
- metadata.gz: 9046121ecb68b88f866bf4a0ac14241a4ab56bb84d6d446d2f6b983cb7be600932d69ac3b33964651d3bfc0a019fe1a9bccd51f46fb6c3219b682bf8f68f3fec
7
- data.tar.gz: dc58094ebf3bcba65020b595102696b8c495efaa2a6226d7fafa9cc7ea563c3d6cd9fb13221e557bd0a7c6d44956d0fbac1ad561cc6d9688ca843f8cacf5bbe0
6
+ metadata.gz: 72d6a5a63cdb53272e9d3cab73945fb91b3d23a7bc09ac5588195d0351bb3f4d77d4d93645dcba01f7d44657a6717acfae266c57762269edb118bd16e4f6fd88
7
+ data.tar.gz: 1e4e6d4ab5b312e99c7ec28df1f8710fb08b8521aa7ccda3aa312c99b2e6344626a58261c1bb9be09efea51be60c62ca89719852beda27945a832d0b79de70f9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.21)
4
+ calculated_attributes (0.0.22)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.21)
4
+ calculated_attributes (0.0.22)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- calculated_attributes (0.0.21)
4
+ calculated_attributes (0.0.22)
5
5
  activerecord (>= 3.2.20)
6
6
 
7
7
  GEM
@@ -58,8 +58,10 @@ ActiveRecord::Base.send(:include, Module.new do
58
58
  no_sym_in_attr =
59
59
  if @attributes.respond_to? :include?
60
60
  !@attributes.include?(method.to_s)
61
- else
61
+ elsif @attributes.respond_to? :key?
62
62
  !@attributes.key?(method.to_s)
63
+ else
64
+ true
63
65
  end
64
66
  super || (no_sym_in_attr && (self.class.calculated.calculated[method] || self.class.base_class.calculated.calculated[method]))
65
67
  end
@@ -1,3 +1,3 @@
1
1
  module CalculatedAttributes
2
- VERSION = '0.0.21'
2
+ VERSION = '0.0.22'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calculated_attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zach Schneider