bsm-models 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bsm/model/coders/abstract_column.rb +1 -1
- metadata +1 -1
@@ -19,7 +19,7 @@ class Bsm::Model::Coders::AbstractColumn
|
|
19
19
|
def load(string)
|
20
20
|
return object_class.new if object_class != Object && string.nil?
|
21
21
|
begin
|
22
|
-
obj = _load(string)
|
22
|
+
obj = object_class === string ? string : _load(string)
|
23
23
|
|
24
24
|
unless obj.is_a?(object_class) || obj.nil?
|
25
25
|
raise ActiveRecord::SerializationTypeMismatch,
|