Sha256: d7d8b4634760c9afc5b93d7765e8c22273b9d73a998394f3e723731663982dee

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

include LatoCore::Interface

# Set default languages

CORE_LANG = core_loadModuleLanguages('lato_core')

# Create first user if not exist

if ActiveRecord::Base.connection.table_exists? 'lato_core_superusers'
  if LatoCore::Superuser.where(permission: 10).empty?
    LatoCore::Superuser.create(name: 'Admin', username: 'lato',
    email: 'lato@mail.com', permission: 10, password: 'password',
    password_confirmation: 'password')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lato_core-1.1.5 config/initializers/init.rb