#544 ✓resolved
Jamie Macey

dm-is-versioned needs auto-include

Reported by Jamie Macey | August 28th, 2008 @ 10:44 AM

Merely requiring dm-is-versioned is not sufficient to be able to use it in models, but it should be. See dm-is-state_machine/lib/dm-is-state_machine.rb for an example done right.

Using dm-is-state_machine's example, the following line in a merb before_app_loads block seems to work:

DataMapper::Resource::ClassMethods.send :include, DataMapper::Is::Versioned::ClassMethods

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »