views:

218

answers:

0

Hi,

I build several plugins using the class method 'named_scope', which has been deprecated and replaced by 'scope' in Rails 3. I would like to avoid the following warning as I have lot a scopes present in my plugins :

DEPRECATION WARNING: Base.named_scope has been deprecated, please use Base.scope instead.

How to you deal with that? Did you create any 'scope' method if it's rails 2.X and pass the information to 'named_scope'? Any clean suggestion?

Cheers!

Vincent