`render @sti_model_instance` sets the local to be the singular name of the derived class not the base… More yucks for your bucks.
Or is it rendering the template for the parent class with the ivar named for the child?
-
-
no, it’s doing the Right Thing. I’m well versed in this behaviour yet it always feels somewhat awkward. Eg https://gist.github.com/benlovell/493f6da79e97c8add75ac672d5b2bb6e …
-
This is what I'd do if redesigning it today: https://gist.github.com/sgrif/2ebfe7df2b07d02f8ab39fc423ea199d …
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.