[Nitro] Og and 'duck typing' search

Alexey Petrushin lists at ruby-forum.com
Thu Jun 5 19:28:50 EDT 2008


Can Og search for 'name' in all 'managed' classes?

I.e. there are: Post, User, Topic, Comment, ..., and all of them have
the 'name' property. So, can i use something like:

        Og.search_by_name('my_name')?

Or i should explicitly do it for all classes? I.e.:

        Post.search_by_name('my_name').
        concat(User.search_by_name('my_name')).
        concat ...
-- 
Posted via http://www.ruby-forum.com/.


More information about the Nitro-general mailing list