method

concern

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Concerning
concern(topic, &module_definition) public

A low-cruft shortcut to define a concern.

concern :EventTracking do
  ...
end

is equivalent to

module EventTracking
  extend ActiveSupport::Concern

  ...
end
Show source
Register or log in to add new notes.