Hobo::Model's inherited callback is not running
Reported by Matt Jones | July 8th, 2010 @ 01:01 AM | in Hobo 1.1
Ran across this when cards didn't get auto-generated for an STI subclass - the inherited callback in model.rb (around line 39 in 1.0.0) doesn't run on STI models...
This is especially bizarre given that it clearly has run at some point:
http://github.com/tablatom/hobo/commit/351b46b41ee351f346986f4bec85...
Tried it with models named both 'Admin' and 'Zulu' without any difference, just to check if there's some sort of load order snafu.
Somebody isn't calling 'super', now all I need to do is find them...
Comments and changes to this ticket
-
Matt Jones July 8th, 2010 @ 01:21 AM
- Assigned user set to Matt Jones
- Milestone set to Hobo 1.0X
- State changed from new to investigating
- Milestone order changed from 197849 to 0
Quick update - moving the definition down to inside the
ClassMethods
module fixed the issue. Well, that and fixing the now-obsolete call toHobo.register_model
that was in there...Need to sharpen my class-fu to understand why the alias_method_chains worked but the class method didn't; for now, I'll get a commit together to fix this.
-
Bryan Larsen November 15th, 2010 @ 06:10 PM
- Milestone changed from Hobo 1.0X to Hobo 1.1
- Milestone order changed from 1 to 0
-
Matt Jones September 15th, 2011 @ 09:07 PM
(from [f913d95fe4cc2a709f097359662e0ad8495e5f47]) [#753] put the inherited callback someplace it will actually get called https://github.com/tablatom/hobo/commit/f913d95fe4cc2a709f097359662...
-
Matt Jones September 15th, 2011 @ 09:07 PM
- State changed from investigating 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 »
People watching this ticket
Referenced by
- 753 Hobo::Model's inherited callback is not running (from [f913d95fe4cc2a709f097359662e0ad8495e5f47]) [#753] ...