cc4f1e9c13
Introduce an abstraction that is going to be used to propose models for other models that can accept propositions.
6 lines
185 B
Ruby
6 lines
185 B
Ruby
class Proposition < ActiveRecord::Base
|
|
belongs_to :proposer, class_name: 'User'
|
|
belongs_to :proposition_accepting, polymorphic: true
|
|
belongs_to :proposable, polymorphic: true
|
|
end
|