Sha256: 6e9c3476d18962021587402839ed347f29ab3a5dcabd24aa3edaf7ac206b2bb1
Contents?: true
Size: 653 Bytes
Versions: 28
Compression:
Stored size: 653 Bytes
Contents
def using_sqlite? ActsAsTaggableOn::Utils.connection && ActsAsTaggableOn::Utils.connection.adapter_name == 'SQLite' end def supports_concurrency? !using_sqlite? end def using_postgresql? ActsAsTaggableOn::Utils.using_postgresql? end def postgresql_version if using_postgresql? ActsAsTaggableOn::Utils.connection.execute('SHOW SERVER_VERSION').first['server_version'].to_f else 0.0 end end def postgresql_support_json? postgresql_version >= 9.2 end def using_mysql? ActsAsTaggableOn::Utils.using_mysql? end def using_case_insensitive_collation? using_mysql? && ActsAsTaggableOn::Utils.connection.collation =~ /_ci\Z/ end
Version data entries
28 entries across 27 versions & 4 rubygems