[openstreetmap-website] Mild rejig of the browse pages (#487)

John Firebaugh notifications at github.com
Wed Sep 25 17:09:54 UTC 2013


> @@ -3,24 +3,37 @@ def link_to_page(page, page_param)
>      return link_to(page, page_param => page)
>    end
>  
> -  def printable_name(object, version=false)
> +  def printable_name(object, type, version=false)

Can this be written in such a way so as not to add another boolean flag to this method signature? Preferably refactor it into a family of functions without flags, or if that's not easy, convert the flags to named hash options.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/487/files#r6578735
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130925/e12a8e89/attachment.html>


More information about the rails-dev mailing list