mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
9 lines
168 B
Ruby
9 lines
168 B
Ruby
module Likeable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
has_many :likes, as: :likeable, dependent: :destroy
|
|
has_many :members, through: :likes
|
|
end
|
|
end
|