On 5 Nov 2008, at 13:17, Fernando Perez wrote:

Let's say I have a class method: Product.find_if_purchased(product_id,
user_id)

Let's say it is called in 3 different controllers.

Hmmm, could you make a helper module and mix that into all three controllers? Then there'd be just one place to change it.

Ashley

--
http://www.patchspace.co.uk/
http://aviewfromafar.net/



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

Reply via email to