bsm-models 0.5.5 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,
|