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.
@@ -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) unless string.nil?
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsm-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: