rsl/stringex — Issue #43: STI and duplicates
Author: skateinmars
Created: 2012-03-05 09:48:57+00:00
State: open

Currently duplicates in ActsAsUrl are checked only within the scope of the current class (see https://github.com/rsl/stringex/blob/master/lib/stringex/acts_as_url.rb#L97).

When using Signle Table Inheritance this may sometimes be the wanted behaviour but there could be some cases where duplicates should be checked across the differents submodels.

I'd submit a patch but I don't see how to change the current implementation. Maybe adding an option to specify the class name of the model to check for duplicates ?