]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_entry.rb
Only include the home link if the user is logged in.
[rails.git] / app / models / diary_entry.rb
index 2da92d400648a564eecc1bdd66c6841190b6245f..ad334151c37f8eafc786b7a8fe9212c7d6ad523e 100644 (file)
@@ -1,2 +1,3 @@
 class DiaryEntry < ActiveRecord::Base
+  belongs_to :user
 end