Class: User

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/generators/templates/application/merb_stack/app/models/user.rb

Overview

This is a default user class used to activate merb-auth. Feel free to change from a User to Some other class, or to remove it altogether. If removed, merb-auth may not work by default.

Don’t forget that by default the salted_user mixin is used from merb-more You’ll need to setup your db as per the salted_user mixin, and you’ll need To use :password, and :password_confirmation when creating a user

see merb/merb-auth/setup.rb to see how to disable the salted_user mixin

You will need to setup your database and create a user.