freezer 0.6.0 → 0.6.1

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.
@@ -14,7 +14,8 @@ module Freezer
14
14
  slient: false
15
15
  })
16
16
 
17
- klass = options[:class_name].camelize.constantize
17
+ klass = options[:class_name]
18
+ klass = klass.to_s.camelize.constantize unless Class === klass
18
19
  accessor_name = association_name.to_s.underscore
19
20
  serializer = if self.columns_hash[options[:column_name].to_s].type == :hstore
20
21
  require 'freezer/serialization/hstore'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freezer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: