Introduce a PropositionAccepting concern

It's sole purpose is to denote models that can be associated with a
proposable model.
This commit is contained in:
Petko Bordjukov 2015-04-17 21:52:27 +03:00
parent 0900b2195f
commit 050db7d124
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
module PropositionAccepting
extend ActiveSupport::Concern
included do
has_many :propositions, as: :proposition_accepting
end
end