Oops, of course the logger line in the find method should be removed!

>   # override activerecord's find to allow us to find by name or id
> transparently
>   def self.find(*args)
>     logger.info args.first
>     if args.is_a?(Array) and args.first.is_a?(String) and
> (args.first.index(/[a-zA-Z\-_]+/) or args.first.index('0') == 0 or
> args.first.to_i.eql?(0) )
>       find_by_login_slug(args)
>     else
>       super
>     end
>   end

Cheers,

--
BP
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to