I've tried following the pattern from the accepted answer here:
http://stackoverflow.com/questions/10680845/owner-filteder-model-objects-on-rails-3

But I'm left with a problem in that I populate the session variables on
User.after_database_connection (when I'd assumed, probably incorrect,
that we first know who the user is) and the scope is called before then.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/8af994a5825d43688442d9c2ee989171%40ruby-forum.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to