Ruby on Rails concern

引用
The Rails Concern are used to DRYING the code for both models and controllers.So just by including the module,either in model/controller you get the methods and you can call them just like you call it usually as if they are defined within the controller/model.

http://stackoverflow.com/questions/14541823/how-to-use-concerns-in-rails-4

你可能感兴趣的:(Ruby on Rails concern)