Authentication restriction using Devise plugin in Ruby on Rails
===

Is there anyone experience with Rails Devise plugin? Coz in my project, when the user typed username and password, I have to check in another table whether the user is active. There are two tables, first one is the `user` and the other one `role_membership` in `role_membership` table there's a column named `active_status`. I have to check whether the `active_status = 1` otherwise the user cannot log in to the system. Anyone here knows how to configure the Devise plugin to check the value in another tables. I found some tutorials, but all of 'em mentioning about checking in a field in same table.

Thanks