Does anyone know a good way to override AR associations to take
special cases into account. My current take is the example below which
allows the 'root' user to access all products, but only works if I
remember to call it with a .all/.find or similar method:
'user.products.all' instead of 'user.products'. Ideally I guess I want
to return a proxy object that represents all products. Any ideas?
id == 1
Product # Better way?
alias_method_chain :products, :root