module Mongoid::Symbolize
Public Instance Methods
read_i18n_attribute(attr_name)
click to toggle source
Return an attribute's i18n
# File lib/symbolize/mongoid.rb, line 160 def read_i18n_attribute(attr_name) t = self.class.i18n_translation_for(attr_name, read_attribute(attr_name)) t.is_a?(Hash) ? nil : t end