
before destroy hook works not with ParanoidDateTime Field
Reported by ronin-28401 (at lighthouseapp) | August 7th, 2008 @ 09:38 AM | in 1.0.0
After adding a ParanoidDateTime Field to the model the 'before :destroy' hook is not working anymore.
Comments and changes to this ticket
-
Dirkjan Bussink December 3rd, 2008 @ 01:45 PM
- State changed from new to confirmed
- Assigned user cleared.
This is caused because ParanoidDateTime is using class_eval and hooks are already setup I guess.
-
Nicholas Mulder December 17th, 2008 @ 08:02 PM
This hack worked for me a while back on dm-core(0.9.6);
-
Michael Klishin (antares) January 10th, 2009 @ 06:37 AM
- Tag changed from paranoiddatetime to dm-types, paranoiddatetime, types
- Assigned user set to Michael Klishin (antares)
-
Dan Kubb (dkubb) February 4th, 2010 @ 03:52 AM
- State changed from confirmed to accepted
- Assigned user changed from Michael Klishin (antares) to Dan Kubb (dkubb)
- Milestone set to 1.0.0
-
Dan Kubb (dkubb) February 4th, 2010 @ 03:52 AM
- State changed from accepted to resolved
(from [c65fd07674205afc9d9d78670b738ffa2ee9572b]) Fixed paranoid types
- Fixed hooks to work with Resource#destroy when paranoid type used
- Specified behaviour of Resource#destroy and Resource#destroy! when a paranoid type is used
- Specified behaviour of Model#with_deleted when a paranoia property is declared. Previous behaviour seemed broken, since it would only have returned deleted resources, but "with deleted" implies you will be returning all resources, including the deleted ones.
- Moved common code from paranoid types into a module
[#520 state:resolved] [#883 state:resolved] http://github.com/datamapper/dm-core/commit/c65fd07674205afc9d9d786...
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 »
People watching this ticket
Referenced by
-
520 before destroy hook works not with ParanoidDateTime Field [#520 state:resolved] [#883 state:resolved] http://githu...
-
883 ParanoidDateTime doesn't respect Resource.with_deleted [#520 state:resolved] [#883 state:resolved] http://githu...