lancejpollard / authlogic-connect

Instant Oauth and OpenID support for your Rails and Sinatra Apps
MIT License
148 stars 27 forks source link

dependence of params[:authentication_type] and model class (ActiveRecord::Base / Authlogic::Session::Base) #42

Open ql opened 14 years ago

ql commented 14 years ago

Wouldn't it be good if the exception will be raised when trying to save User (< ActiveRecord::Base) with "authentication_type => :session" or UserSession (< Authlogic::Session::Base) with "authentication_type => :user" ?

Or maybe it should be mentioned in README... Otherwise it could be difficult to figure out why no redirect happened (well, at least for me it was).