maxjustus / sinatra-authentication

A sinatra extension wrapped in a gem that implements authentication/permissions with users stored in the database. Now with optional support for facebook connect
The Unlicense
478 stars 94 forks source link

Fixed ActiveRecord support and made flash messages work with sinatra-flash #60

Closed zquestz closed 7 years ago

zquestz commented 9 years ago

Cleaned up a bunch of loose ends and got ActiveRecord support working fully.

1) Now works with sinatra-activerecord. All functionality works as expected. Tested all views. 2) Normalized ar files names. 3) Made sure rake db:create works by rescuing the setup if it fails (fails on non existent db). 4) Changed checks for session[:user] to use logged_in? instead. 5) Changed flash code to detect the flash object, enabling the use of sinatra-flash 6) Added simple user cache for current_user. That way multiple accesses don't hit the db. 7) Changed edit page to 'Edit Profile', and capitalized some links. Also added -'s between so they look a bit nicer. 8) Removed display of notifications in the default views. They are in most people's global layout, so they shouldn't be in the base. 9) Fixed ArApp to use public_dir instead of public.

zquestz commented 8 years ago

Any status on this?