Does dependency injection exist in Rails?

前端 未结 5 1045
挽巷
挽巷 2020-12-24 10:24

Does the fact that Rails have an MVC approach mean that is has dependency injection?

Or is there a reason that we don\'t talk about dependency injection in Rails?

5条回答
  •  余生分开走
    2020-12-24 11:04

    Dependency injection is usually unnecessary with Ruby. Jamis Buck blogged extensively about the reasons why. Well worth a read.

提交回复
热议问题