Sha256: d0acfa1e4ff159a7ba648ff8179bd192e09d92d4eb1008dc25c73bc0faa2d3f6
Contents?: true
Size: 351 Bytes
Versions: 12
Compression:
Stored size: 351 Bytes
Contents
namespace :spina do desc "Generate basic pages" task bootstrap: [:create_basic_pages] desc "Create custom pages from spina config" task :create_basic_pages => :environment do puts "Bootstrap Spina!" puts "Creating Homepage..." Spina::Page.where(name: 'homepage').where(deletable: false).first_or_create! puts "Done" end end
Version data entries
12 entries across 12 versions & 1 rubygems