]> git.openstreetmap.org Git - rails.git/blob - app/models/message.rb
Only include the home link if the user is logged in.
[rails.git] / app / models / message.rb
1 class Message < ActiveRecord::Base
2   belongs_to :sender, :class_name => "User", :foreign_key => :from_user_id
3   belongs_to :recipient, :class_name => "User", :foreign_key => :to_user_id
4 end