On 12 Jul 2010, at 06:43, Kevin wrote:

> Awesome discussion you've started here, very fun read for a new rspec
> follower.
> 
> Just wanted to throw in that I've found setting a
> "cattr_accessor :current_user" in the user model to hold the current
> user to be very handy in terms of simplifying controllers.
> 
> -Kevin

Probably not the best idea if you're planning on having the app run on more 
than one thread or process though :)

cheers,
Matt

http://blog.mattwynne.net
+44(0)7974 430184

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to