micon icon indicating copy to clipboard operation
micon copied to clipboard

Ultima2 example missing injection

Open edgarjs opened this issue 5 years ago • 0 comments
trafficstars

Hi. I'm trying to understand the advanced example in ultima2.rb, and everything seems to make sense. I just have two questions:

  1. Does the activate method need to be used whenever I want a "temporary" component? Or what exactly does it do?
  2. In the run method of the main class, there's a comment noting that the request instance is no longer passed because it's automatically injected, but how does that happen? I think the Controller class is missing an inject :request instead of the attr_accessor :request. Is that correct?

Thanks!

edgarjs avatar Mar 10 '20 15:03 edgarjs