(Not documented)
# File vendor/plugins/ubiquo_scaffold/lib/ubiquo_scaffold/commands.rb, line 16
16: def update_locale_models(path = '/')
17: template_path = Pathname.new(source_path(path))
18: translations = UbiquoScaffold::TranslationUpdater.new(template_path)
19: translations.update_with('models.yml', 'model-locale.yml', binding) do |models, current_model, locale|
20: models[locale]['activerecord']['models'].merge! current_model[locale]['activerecord']['models']
21: models[locale]['activerecord']['attributes'].merge! current_model[locale]['activerecord']['attributes']
22: end
23: end
(Not documented)
# File vendor/plugins/ubiquo_scaffold/lib/ubiquo_scaffold/commands.rb, line 25
25: def update_ubiquo_locales(path = '/')
26: template_path = Pathname.new(source_path(path))
27: translations = UbiquoScaffold::TranslationUpdater.new(template_path)
28: translations.update_with('ubiquo.yml', 'locale.yml', binding) do |models, current_model, locale|
29: models[locale]['ubiquo'].merge! current_model[locale]['ubiquo']
30: end
31: end
Disabled; run with $DEBUG to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.