class I18nAdmin::Translation
Attributes
key[RW]
locale[RW]
original[RW]
value[RW]
Public Class Methods
key_from(encoded_key)
click to toggle source
# File lib/i18n_admin/translation.rb, line 23 def self.key_from(encoded_key) Base64.decode64(encoded_key) end
Public Instance Methods
matches?(search)
click to toggle source
# File lib/i18n_admin/translation.rb, line 17 def matches?(search) [:key, :original, :value].any? do |key| send(key).to_s.match(search) end end
persisted?()
click to toggle source
# File lib/i18n_admin/translation.rb, line 9 def persisted? true end
to_param()
click to toggle source
# File lib/i18n_admin/translation.rb, line 13 def to_param Base64.strict_encode64(key) end