blob: 9fce38ea445692c24e9765e3a8e3360a1512c8fe (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module ActiveRecord
module Type
module Decorator # :nodoc:
def init_with(coder)
@subtype = coder['subtype']
__setobj__(@subtype)
end
def encode_with(coder)
coder['subtype'] = __getobj__
end
end
end
end
|