Method: LocalizableModel::Localizer#localized_attributes

Defined in:
lib/localizable_model/localizer.rb

#localized_attributesObject



23
24
25
26
27
28
# File 'lib/localizable_model/localizer.rb', line 23

def localized_attributes
  attribute_names.each_with_object({}) do |attr, h|
    h[attr] = {}
    locales.each { |l| h[attr][l] = get_value(attr, l) }
  end
end