Sha256: bff329e5ebd8b11b6d6becdfbc2356db591d0e0d077ad6b51388a82f02aea516

Contents?: true

Size: 286 Bytes

Versions: 43

Compression:

Stored size: 286 Bytes

Contents

module HoboFields
  module Types
    class SerializedObject < Object

      COLUMN_TYPE = :text

      def self.declared(model, name, options)
        model.serialize name, options.delete(:class) || Object
      end

      HoboFields.register_type(:serialized, self)

    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
hobo_fields-2.0.0.pre7 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre6 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre5 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre4 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.2 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.1 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre3 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre2 lib/hobo_fields/types/serialized_object.rb
hobo_fields-2.0.0.pre1 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre8 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre7 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre6 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre5 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre4 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre3 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.4.0.pre2 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.0 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.0.RC4 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.0.RC3 lib/hobo_fields/types/serialized_object.rb
hobo_fields-1.3.0.RC2 lib/hobo_fields/types/serialized_object.rb