Parent

I18n::Backend::ActiveRecord::Translation

Public Class Methods

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

Public Instance Methods

interpolates?(key) click to toggle source
    # File lib/i18n/backend/active_record/translation.rb, line 78
78:         def interpolates?(key)
79:           self.interpolations.include?(key) if self.interpolations
80:         end
value() click to toggle source
    # File lib/i18n/backend/active_record/translation.rb, line 82
82:         def value
83:           if is_proc
84:             Kernel.eval(read_attribute(:value))
85:           else
86:             value = read_attribute(:value)
87:             value == 'f' ? false : value
88:           end
89:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.