Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide default alias/naming option at Representer-level #131

Closed
wants to merge 3 commits into from

Conversation

myabc
Copy link

@myabc myabc commented Mar 16, 2015

No description provided.

myabc added 3 commits March 15, 2015 21:47
`#as_strategy=` takes a callable object.

Signed-off-by: Alex Coles <[email protected]>
@@ -84,6 +84,20 @@ end
song.to_json #=> {"name":"Fallout","track":1}
```

You can also a naming strategy at a Representer-level:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a verb here ;-)

I guess it should read

You can also provide a naming strategy at a Representer-level:

@apotonick
Copy link
Member

Sorry Alex for coming back so late! I guess you know why! 😜

Loving the idea of a naming strategy. I am actually thinking about providing a "configuration strategy" for all kinds of options (on the other hand, would that make sense?). BTW, using the :as directive for that is brillant, @myabc. ❤️

@myabc
Copy link
Author

myabc commented Jan 21, 2017

Superseded by #138.

@myabc myabc closed this Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants