ActsAsTaggableOn::Utils::OverallMethods

Public Instance Methods

sha_prefix(string) click to toggle source
# File lib/acts_as_taggable_on/utils.rb, line 18
def sha_prefix(string)
  Digest::SHA1.hexdigest("#{string}#{rand}")[0..6]
end
using_postgresql?() click to toggle source
# File lib/acts_as_taggable_on/utils.rb, line 10
def using_postgresql?
  ::ActiveRecord::Base.connection && ::ActiveRecord::Base.connection.adapter_name == 'PostgreSQL'
end
using_sqlite?() click to toggle source
# File lib/acts_as_taggable_on/utils.rb, line 14
def using_sqlite?
  ::ActiveRecord::Base.connection && ::ActiveRecord::Base.connection.adapter_name == 'SQLite'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.