Sha256: 21bf8451ae5f0cc0b911a914d2d3a8a269aba6be964478260de6c77db721a2ea
Contents?: true
Size: 451 Bytes
Versions: 3
Compression:
Stored size: 451 Bytes
Contents
module ActiveRecord [ *([Type::Value, Type::Integer, Type::Serialized] if defined?(Type::Value)), *([Enum::EnumType] if defined?(Enum::EnumType)), ].each do |s| s.class_eval do if !method_defined?(:deserialize) && method_defined?(:type_cast_from_database) # deserialize was changed to type_cast_from_database in Rails 5 alias_method :deserialize, :type_cast_from_database end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pluck_all-2.3.3 | lib/pluck_all/models/patches/deserialize.rb |
pluck_all-2.3.2 | lib/pluck_all/models/patches/deserialize.rb |
pluck_all-2.3.1 | lib/pluck_all/models/patches/deserialize.rb |