[openstreetmap-website] User page redesign a.k.a. activity stream (#54)

Tom Hughes notifications at github.com
Sun Aug 12 16:41:36 BST 2012


> @@ -222,6 +228,40 @@ def access_token(application_key)
>      return ClientApplication.find_by_key(application_key).access_token_for_user(self)
>    end
>  
> +
> +public
> +
> +  #  Helpers for outputting only public data via JSON
> +  cattr_accessor :public_fields
> +  @@public_fields = [:id, :display_name]
> +
> +  alias_method :ar_to_json, :to_json  

You shouldn't need to use `alias_method` here - just use `super` when you want to pass the call on to the inherited version.

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


More information about the rails-dev mailing list