Sha256: f4e8232d9ebe3cacec3823331a38b968f0431d6c3e5137b1fc8fe43b59bd227a
Contents?: true
Size: 494 Bytes
Versions: 4
Compression:
Stored size: 494 Bytes
Contents
namespace :spina do desc "Generate all pages based on the theme config" task bootstrap: :environment do Spina::Account.first.save end desc "Update translations after adding locales" task update_translations: :environment do Spina.locales.each do |locale| Mobility.with_locale(locale) do Spina::Page.all.order(:id).each do |page| page.title = page.title(fallback: I18n.fallbacks[locale]) page.save end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spina-2.0.2 | lib/tasks/spina_tasks.rake |
spina-2.0.1 | lib/tasks/spina_tasks.rake |
spina-2.0.0 | lib/tasks/spina_tasks.rake |
spina-2.0.0.beta | lib/tasks/spina_tasks.rake |