cirandas.net

ref: master

app/models/suggestion_connection.rb


1
2
3
4
5
6
7
class SuggestionConnection < ApplicationRecord

  attr_accessible :suggestion, :suggestion_id, :connection_type, :connection_id

  belongs_to :suggestion, :class_name => 'ProfileSuggestion', :foreign_key => 'suggestion_id'
  belongs_to :connection, :polymorphic => true
end