You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That looks fine. I simply wouldn't the _attributes helper though, it is private and you shouldn't be fiddling with it when simply calling attribute would likely suffice.
I want to create a
time_ago_in_words
version of most time values I am rendering in my json.I want to specify which keys this happens for, and I think it belongs in the serializer/view layer (not in the model).
I was able to make a helper method that works like this:
gist is here: https://gist.github.com/3177989
I am just wondering if there is a more concise way to accomplish this?
The text was updated successfully, but these errors were encountered: