Ruby on Rails concern

[color=red][quote]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.[/quote][/color]
[url]http://stackoverflow.com/questions/14541823/how-to-use-concerns-in-rails-4[/url]

你可能感兴趣的:(RoR,ruby)