activerecord-typedstore 0.5.1 → 0.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9841c95ab9136c0a993356c88d4cf3f760929b1b
|
4
|
+
data.tar.gz: d970abfab193f4df15bf0487b346a760b04c5d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ef9c1a682c54b84662cb985703fd027239d408254098c4382d2a3ac4aa225c5158692dac421d7a21b6ff9aa393ccd6b6a222cb9a24fd9eaa02fee0fa86f162f
|
7
|
+
data.tar.gz: e3d1b9493fb169f2096b246583e1acfd41ec4f83e395bac97160c63d7c2173274115ec5f7576e6811189a1fe0dac1748fe5af526196727f958ef10206c677ad5
|
@@ -5,8 +5,8 @@ require 'active_record/typed_store/typed_hash'
|
|
5
5
|
module ActiveRecord::TypedStore
|
6
6
|
AR_VERSION = Gem::Version.new(ActiveRecord::VERSION::STRING)
|
7
7
|
IS_AR_3_2 = AR_VERSION < Gem::Version.new('4.0')
|
8
|
-
IS_AR_4_1 = AR_VERSION >= Gem::Version.new('4.1') && AR_VERSION < Gem::Version.new('4.2.0
|
9
|
-
IS_AR_4_2 = AR_VERSION >= Gem::Version.new('4.2.0
|
8
|
+
IS_AR_4_1 = AR_VERSION >= Gem::Version.new('4.1') && AR_VERSION < Gem::Version.new('4.2.0')
|
9
|
+
IS_AR_4_2 = AR_VERSION >= Gem::Version.new('4.2.0')
|
10
10
|
|
11
11
|
module Extension
|
12
12
|
extend ActiveSupport::Concern
|
@@ -129,7 +129,7 @@ module ActiveRecord::TypedStore
|
|
129
129
|
|
130
130
|
def coder_for(attr_name)
|
131
131
|
column = self.class.columns_hash[attr_name.to_s]
|
132
|
-
return unless column.cast_type.is_a?(::ActiveRecord::Type::Serialized)
|
132
|
+
return unless column && column.cast_type.is_a?(::ActiveRecord::Type::Serialized)
|
133
133
|
column.cast_type.coder
|
134
134
|
end
|
135
135
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-typedstore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|