Initial commit
This commit is contained in:
7
app/models/concerns/notable.rb
Normal file
7
app/models/concerns/notable.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module Notable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
has_many :notes, as: :notable, dependent: :destroy
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user