Create Relationable concern

This commit is contained in:
Bertocq
2017-11-27 18:37:27 +01:00
parent f0dca7147b
commit 8f3769aa7d

View File

@@ -0,0 +1,7 @@
module Relationable
extend ActiveSupport::Concern
included do
has_many :related_contents, as: :parent_relationable
end
end