freezer 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/freezer/active_record_extensions.rb +2 -1
- metadata +1 -1
@@ -14,7 +14,8 @@ module Freezer
|
|
14
14
|
slient: false
|
15
15
|
})
|
16
16
|
|
17
|
-
klass = options[:class_name]
|
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'
|