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

Version Path
acts-as-taggable-on-12.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-11.0.0 spec/support/0-helpers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/acts-as-taggable-on-10.0.0/spec/support/0-helpers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/acts-as-taggable-on-9.0.1/spec/support/0-helpers.rb
acts-as-taggable-on-10.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-9.0.1 spec/support/0-helpers.rb
acts-as-taggable-on-9.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-fix-8.1.1 spec/support/0-helpers.rb
acts-as-taggable-on-fix-8.1.0 spec/support/0-helpers.rb
acts-as-taggable-on-8.1.0 spec/support/0-helpers.rb
acts-as-taggable-on-8.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-7.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-6.5.0 spec/support/0-helpers.rb
sb-acts-as-taggable-on-6.5.0 spec/support/0-helpers.rb
acts-as-taggable-on-6.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-5.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-4.0.0 spec/support/0-helpers.rb
acts-as-taggable-on-4.0.0.pre spec/support/0-helpers.rb
acts-as-taggable-on-3.5.0 spec/support/0-helpers.rb
acts-as-taggable-on-3.4.4 spec/support/0-helpers.rb