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

Feature: Automatically trasto columns ending in "_i18n" #3

Open
joallard opened this issue Nov 23, 2014 · 2 comments
Open

Feature: Automatically trasto columns ending in "_i18n" #3

joallard opened this issue Nov 23, 2014 · 2 comments

Comments

@joallard
Copy link
Collaborator

The information is kind of redundant. We should default to "every field that is a hstore and ends in '_i18n' gets Trasto'ed". That way, you just need to specify your intent once. That's probably feasible?

@joallard
Copy link
Collaborator Author

Is there a hook after the models are intialized / connection is established where we can do stuff based on column names?

@mjonuschat
Copy link
Owner

I like the explicitness of declaring which columns to work on, but making the „magic“ optional, for example by including a module in the model would be fine by me. The after_initialize callback might be usable for this purpose.

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

No branches or pull requests

2 participants