mkly/Data — pull request #38 by akodde (2014-07-08 08:34:24+00:00)
Title: Improve duplication method

Instead of iterating through all attributes we might as well duplicate the DataAttributeValues for a specific record. This makes duplication way faster.

Important:
The column avID (table: DataAttributeValues) cannot be UNIQUE. Therefore I've updated the db.xml and updated the package version.

I've moved the logic from the controller to the model, which is better practice imo.