micon
micon copied to clipboard
Ultima2 example missing injection
trafficstars
Hi. I'm trying to understand the advanced example in ultima2.rb, and everything seems to make sense. I just have two questions:
- Does the
activatemethod need to be used whenever I want a "temporary" component? Or what exactly does it do? - In the
runmethod of the main class, there's a comment noting that therequestinstance is no longer passed because it's automatically injected, but how does that happen? I think theControllerclass is missing aninject :requestinstead of theattr_accessor :request. Is that correct?
Thanks!