Sha256: 8948c8b6ddadf59eeb0426fdec394ae82c7c4d06b8acad690d4c48ecdb72b6ff

Contents?: true

Size: 263 Bytes

Versions: 51

Compression:

Stored size: 263 Bytes

Contents

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

Version data entries

51 entries across 50 versions & 8 rubygems

Version Path
activerecord-4.2.11.3 lib/active_record/type/decorator.rb
activerecord-4.2.11.2 lib/active_record/type/decorator.rb
activerecord-4.2.11.1 lib/active_record/type/decorator.rb
activerecord-4.2.11 lib/active_record/type/decorator.rb
activerecord-4.2.10 lib/active_record/type/decorator.rb
activerecord-4.2.10.rc1 lib/active_record/type/decorator.rb
activerecord-4.2.9 lib/active_record/type/decorator.rb
activerecord-4.2.9.rc2 lib/active_record/type/decorator.rb
activerecord-4.2.9.rc1 lib/active_record/type/decorator.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/activerecord-4.2.8/lib/active_record/type/decorator.rb
activerecord-4.2.8 lib/active_record/type/decorator.rb
activerecord-4.2.8.rc1 lib/active_record/type/decorator.rb
activerecord-4.2.7.1 lib/active_record/type/decorator.rb
activerecord-4.2.7 lib/active_record/type/decorator.rb
activerecord-4.2.7.rc1 lib/active_record/type/decorator.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.6/lib/active_record/type/decorator.rb
activerecord-4.2.6 lib/active_record/type/decorator.rb
activerecord-4.2.6.rc1 lib/active_record/type/decorator.rb
activerecord-4.2.5.2 lib/active_record/type/decorator.rb
activejob-lock-0.0.2 rails/activerecord/lib/active_record/type/decorator.rb