cookies - passing session to service objects -
i have case if resource disabled, of logged in users need logged out, use cookie store session , session.delete :user_id
clear logged in sessions. trying use service object not have access session , i'm passing session object controller.
i'm wondering practice or there cleaner way?
if standard way how test service class, don't have access session
object inside service test.
thanks in advance.
Comments
Post a Comment