Sha256: c9c9f8b846c0b0595cbeba8b93af8e4fb0e3303a8f7f1e75c50c9439092a245f
Contents?: true
Size: 439 Bytes
Versions: 65
Compression:
Stored size: 439 Bytes
Contents
module RailsOps::ModelCasting def self.cast(model) if model.class.respond_to?(:extended_record_base_class) return ActiveType.cast(model, model.class.extended_record_base_class) else return model end end def self.original_class_for(model_class) if model_class.respond_to?(:extended_record_base_class) return model_class.extended_record_base_class else return model_class end end end
Version data entries
65 entries across 65 versions & 1 rubygems