Hi, The question should be "Why is this bad code?" The answer for your question is that it append the company_id to the conditions there is a company_id.
ciao, tom On Feb 2, 7:38 am, Newb Newb <[email protected]> wrote: > hi.. > what does the below code ? > conditions << "company_id = #{company_id}" unless company_id.nil? > > pls explain. > thank you > -- > Posted viahttp://www.ruby-forum.com/. -- Thomas R. "TomK32" Koll <> http://ananasblau.com just a geek trying to change the world http://github.com/TomK32 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

