How can i make this code, more Ruby-esque?

Posted by Globalkeith on Stack Overflow See other posts from Stack Overflow or by Globalkeith
Published on 2010-05-07T14:31:47Z Indexed on 2010/05/07 15:38 UTC
Read the original article Hit count: 164

unless scope.nil?
   @page ||= Page.find(id, :scope => Page.find(scope) )
else
   @page ||= Page.find(id)
end

© Stack Overflow or respective owner

Related posts about ruby

Related posts about programming-languages