(Not documented)
# File vendor/plugins/ubiquo_scaffold/lib/ubiquo_scaffold/commands.rb, line 37
37: def update_locale_models(path = '/')
38: template_path = Pathname.new(source_path(path))
39: translations = UbiquoScaffold::TranslationUpdater.new(template_path)
40: translations.update_with('models.yml', 'model-locale.yml', binding) do |models, current_model, locale|
41: models[locale]['activerecord']['models'].delete current_model[locale]['activerecord']['models'].keys.first
42: models[locale]['activerecord']['attributes'].delete current_model[locale]['activerecord']['attributes'].keys.first
43: end
44: end
(Not documented)
# File vendor/plugins/ubiquo_scaffold/lib/ubiquo_scaffold/commands.rb, line 46
46: def update_ubiquo_locales(path = '/')
47: template_path = Pathname.new(source_path(path))
48: translations = UbiquoScaffold::TranslationUpdater.new(template_path)
49: translations.update_with('ubiquo.yml', 'locale.yml', binding) do |models, current_model, locale|
50: models[locale]['ubiquo'].delete current_model[locale]['ubiquo'].keys.first
51: end
52: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.