SUPER_ADMIN_CHECK = Proc.new do |person|
  Setting.get(:access, :super_admins).include? person.email
end

PEOPLE_ATTRIBUTES_SHOWABLE_ON_HOMEPAGE = %w(website service_name service_description service_phone service_email service_website activities interests music tv_shows movies books quotes about testimony )

begin
  SQLITE = Setting.connection.class.name =~ /sqlite/i rescue false
rescue
  SQLITE = OneBodyInfo.new.database_yaml['production']['adapter'] == 'sqlite3'
end

ONEBODY_VERSION = File.read(File.join(RAILS_ROOT, 'VERSION')).strip

SUPER_ADMIN_CHECK = Proc.new do |person|
  Setting.get(:access, :super_admins).include? person.email
end

PEOPLE_ATTRIBUTES_SHOWABLE_ON_HOMEPAGE = %w(website service_name service_description service_phone service_email service_website activities interests music tv_shows movies books quotes about testimony )

begin
  SQLITE = Setting.connection.adapter_name == 'SQLite' rescue false
rescue
  SQLITE = OneBodyInfo.new.database_yaml['production']['adapter'] == 'sqlite3'
end

ONEBODY_VERSION = File.read(File.join(RAILS_ROOT, 'VERSION')).strip

Use connection.adapter_name for determining database type
Use connection.adapter_name for determining database type
