Flowdock
method

concerns

Importance_1
Ruby on Rails latest stable (v5.2.3) - 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.