Sha256: 178ba4883c3a0015069fc32b5ca315d25b450ee45b12da877f587cb12e551bc0
Contents?: true
Size: 736 Bytes
Versions: 6
Compression:
Stored size: 736 Bytes
Contents
module ActiveRecord module Type class Value module SQLServerBehavior extend ActiveSupport::Concern included do self.type_cast_from_ss_database = false end module ClassMethods def type_cast_from_ss_database @@type_cast_from_ss_database end def type_cast_from_ss_database=(boolean) @@type_cast_from_ss_database = !!boolean end end def type_cast_from_ss_database? self.class.type_cast_from_ss_database end def type_cast_from_database(value) type_cast_from_ss_database? ? super : value end end include SQLServerBehavior end end end
Version data entries
6 entries across 6 versions & 1 rubygems