clio / polymorphic_integer_type

MIT License
37 stars 35 forks source link

Does it work with STI ? #4

Closed tispratik closed 10 years ago

tispratik commented 10 years ago

I have a polymorphic model which is subclassed into different types. It does not seem to be working for that case. It always complains that i am trying to put in a class name like "Campaign" instead of the integer value.

doliveirakn commented 10 years ago

I don't think I've tested with STI on the polymorphic model. It is possible that it doesn't work. Could you post an example of models that are causing issues and I'll see about getting a patch together relatively soon.

tispratik commented 10 years ago

Thanks doliveirakn. Actually i am not sure if its due to the STI or some other custom things that we use in our project. For example we version every record we store, so that could be in the play here. Thats why i was asking if you knew it worked, so i could rule out this possibility.

On Fri, Feb 14, 2014 at 10:41 AM, doliveirakn notifications@github.comwrote:

I don't think I've tested with STI on the polymorphic model. It is possible that it doesn't work. Could you post an example of models that are causing issues and I'll see about getting a patch together relatively soon.

Reply to this email directly or view it on GitHubhttps://github.com/doliveirakn/polymorphic_integer_type/issues/4#issuecomment-35111890 .

tispratik commented 10 years ago

Thanks for looking into it doliveirakn. It was indeed an issue with our versioning system. Your gem works perfectly with STI too.

On Fri, Feb 14, 2014 at 11:55 AM, pratik khadloya tispratik@gmail.comwrote:

Thanks doliveirakn. Actually i am not sure if its due to the STI or some other custom things that we use in our project. For example we version every record we store, so that could be in the play here. Thats why i was asking if you knew it worked, so i could rule out this possibility.

On Fri, Feb 14, 2014 at 10:41 AM, doliveirakn notifications@github.comwrote:

I don't think I've tested with STI on the polymorphic model. It is possible that it doesn't work. Could you post an example of models that are causing issues and I'll see about getting a patch together relatively soon.

Reply to this email directly or view it on GitHubhttps://github.com/doliveirakn/polymorphic_integer_type/issues/4#issuecomment-35111890 .

doliveirakn commented 10 years ago

Excellent.