module Vulgata::Helpers

Public Instance Methods

add_translating_class(klass) click to toggle source
# File lib/vulgata/helpers.rb, line 14
def add_translating_class klass
  @@classes_translating << klass unless @@classes_translating.any? { |x| x.name == klass.name }
end
available_locales() click to toggle source
# File lib/vulgata/helpers.rb, line 6
def available_locales
  (raise LoadError.new("available_locales not found in application.rb") if (@available_locales ||= Rails.application.config.i18n.available_locales).blank?) || @available_locales
end
classes_translating() click to toggle source
# File lib/vulgata/helpers.rb, line 18
def classes_translating
  @@classes_translating
end
vulgata_table_exists?() click to toggle source
# File lib/vulgata/helpers.rb, line 10
def vulgata_table_exists?
  @vulgata_table_exists ||= ActiveRecord::Base.connection.table_exists? 'vulgata_translation_states'
end