socialforge/app/models/forward.rb

4 lines
142 B
Ruby

class Forward < ActiveRecord::Base
validates_presence_of :from_id, :from_type, :to_id, :to_type
belongs_to :from, :polymorphic => true
end