Parent

Class/Module Index [+]

Quicksearch

I18n::Backend::ActiveRecord::Translation

Public Class Methods

available_locales() click to toggle source
# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/translation.rb, line 74
def self.available_locales
  Translation.find(:all, :select => 'DISTINCT locale').map { |t| t.locale.to_sym }
end

Public Instance Methods

interpolates?(key) click to toggle source
# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/translation.rb, line 78
def interpolates?(key)
  self.interpolations.include?(key) if self.interpolations
end
value() click to toggle source
# File lib/active_support/vendor/i18n-0.4.1/i18n/backend/active_record/translation.rb, line 82
def value
  if is_proc
    Kernel.eval(read_attribute(:value))
  else
    value = read_attribute(:value)
    value == 'f' ? false : value
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.