
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
-
--- August 28th, 2008 @ 12:25 PM
- no changes were found...
-
-
Jonathan Stott (namelessjon) September 9th, 2008 @ 07:51 AM
This ticket is now fixed.
The supplied patch didn't quite work (needed some changes to dm-is-versioned/is/versioned.rb too)
-
Sam Smoot September 9th, 2008 @ 10:47 AM
- State changed from new to resolved
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »