Sha256: aca9d6082a83d4b20d70086940df189dfedc0407684a12d5dec0da424418e425
Contents?: true
Size: 438 Bytes
Versions: 4
Compression:
Stored size: 438 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
4 entries across 4 versions & 1 rubygems