Sha256: 31189f5e3d6d846c39fe85001732c43b51807000626e9ae809d7d87456795f8e

Contents?: true

Size: 640 Bytes

Versions: 1

Compression:

Stored size: 640 Bytes

Contents

namespace :georgia do

  desc 'Bootstrap Georgia with necessary instances'
  task install: :environment do

    # Create an admin user to start playing around
    # Also creates the two main roles
    support_user = Georgia::User.create(first_name: 'Dummy', last_name: 'Admin', email: 'admin@dummy.com', password: 'motion11', password_confirmation: 'motion11') do |user|
      user.roles << Georgia::Role.create(name: 'Admin')
      user.roles << Georgia::Role.create(name: 'Editor')
    end

    # Creates the default main UI sections
    Georgia::UiSection.create(name: 'Footer')
    Georgia::UiSection.create(name: 'Sidebar')

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.7.0 lib/tasks/install.rake