freezer 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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: