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.
@@ -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: