Added type column to user table for STI.
Split user model into database and LDAP users.
Removed activeadmin user configuration.
Renamed LDAPUser to DirectoryUser.
Updated seed data to use DatabaseUser type, and to mass assign role.
Removed devise logic from user model.
Added activeadmin configurations for new user types.
Exchanged user-based devise routes for more specific directory/database ones.
Created generic helper methods to abstract the handling of user types.
Added sessions controller to unify database and directory users. This is currently non-functional.
Updated to modify the rack request parameters directly, and to move instead of copy the parameters.
Improved comment.
Implemented user-type-agnostic sign out action.
Updated to use simple path name, since we don't have different paths per devise resource.
Manually specified session routes.
Added constraint to pre-existing fallback root route to restrict it to logged in users (that don't match the previous route contraints).
Added a fallback root route that redirects to the sign in page.
Updated to use new session routes.
Updated user factory to use DatabaseUser model.
Updated to check whether the encrypted password was changed, instead of relying on previous_values.
Removed login scope, since the database_user is the default anyway (and the user scope is now invalid).
Moved session templates out of a devise subfolder, since we're overriding the devise controller anyway.
Added session routing specs.
Added controller specs for session controller.
Refactored create action to search for the user before authenticating.
Added a translation for a user that doesn't exist.
Added a context for trying to authenticate with invalid credentials.