method

concerns

Importance_1
v4.2.7 - Show latest stable - 0 notes - Class: Concerns
concerns(*args) public

Use the named concerns

resources :posts do
  concerns :commentable
end

concerns also work in any routes helper that you want to use:

namespace :posts do
  concerns :commentable
end
Show source
Register or log in to add new notes.