Globalize3 compatibility #41

Open
zdennis opened this Issue Oct 5, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

zdennis commented Oct 5, 2012

seed-fu doesn't currently work with globalize3 (if you try to seed models with translated attributes). I made a seed-fu-globalize3 gem which adds this functionality.

https://github.com/mhs/seed-fu-globalize3

I'm not in love with overriding a couple private methods of SeedFu::Seeder, but it got the job done. Any interest if I submit a patch to add this to seed-fu itself or would you like to leave this sort of thing as a separate gem?

If separate, what do you think about genericizing some of seeder functionality so other libraries could hook into it? (such as identifier valid column names and finding existing models).

WDYT?

Collaborator

jonleighton commented Oct 5, 2012

If separate, what do you think about genericizing some of seeder functionality so other libraries could hook into it? (such as identifier valid column names and finding existing models).

That sounds best to me if it's straightforward to do.

chitsaou commented Oct 17, 2016 edited

@zdennis Hi, I just got a problem when using SeedFu with Globalize.

The problem is that SeedFu's constraints does only recognize column names, while Globalize requires developers to remove duplicated columns from model's table.

And unfortunately the gem you mentioned is not accessible anymore, so I can't confirm if the problem I got is the same as you had. So how did you solve this problem? Or did you submitted another patch to SeedFu? Or you just don't use SeedFu anymore?

Thanks!

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