laserlemon / vestal_versions

Keep a DRY history of your ActiveRecord models' changes
MIT License
934 stars 229 forks source link

Split versioned models and Version concerns into separate files #104

Closed scottwillson closed 5 years ago

scottwillson commented 10 years ago

With Rails 4.1.0rc1, vestal_versions fails to load because of "Cannot define multiple 'included' blocks for a Concern vestal_versions".

I can see why the tagging and user modules (for the versioned model and the Version class) are in the same files. Unfortunately, the latest ActiveSupport::Concern doesn't allow this organization.

This PR's changes allow vestal_versions to work with Rails 4.1.0.rc1 and the tests pass, but they are illustrative, not a good solution. I think options include:

I'm happy to implement any of these or another, better idea.