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

Suggestion: default toString implementation in ActiveRecord #227

Open
mrjbg opened this issue Mar 4, 2014 · 1 comment
Open

Suggestion: default toString implementation in ActiveRecord #227

mrjbg opened this issue Mar 4, 2014 · 1 comment

Comments

@mrjbg
Copy link

mrjbg commented Mar 4, 2014

Hey mate :)

I just had a very simple idea/request. Could you extend mechanoid to provide a default toString implementation that returns for example the following:

RecipeRecord {
id = 1;
title = "title";
ingredients {
ingredient1 = salt;
...
}
....
}

Or simply make toString spit out the key-value pairs in JSON format :) This would be very useful for debugging purposes (but not limited to this).

Cheers mate,
George

@fluxtah
Copy link
Contributor

fluxtah commented Mar 4, 2014

Hey it is possible yes can take a look when I get a a chance

On 4 Mar 2014 00:55, mrjbg [email protected] wrote:
Hey mate :)

I just had a very simple idea/request. Could you extend mechanoid to provide a default toString implementation that returns for example the following:

RecipeRecord {
id = 1;
title = "title";
ingredients {
ingredient1 = salt;
...
}
....
}

Or simply make toString spit out the key-value pairs in JSON format :) This would be very useful for debugging purposes (but not limited to this).

Cheers mate,
George


Reply to this email directly or view it on GitHub:
#227

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants