]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/diary_entry.rb
Make test for a "zero hour" block more robust
[rails.git] / app / models / diary_entry.rb
index 48f3e69bdad646eaa766efe3d6dc44f83207a1a9..e756432fdf4a3b285ec410dfddceb06f50d78442 100644 (file)
@@ -4,7 +4,7 @@ class DiaryEntry < ActiveRecord::Base
 
   has_many :comments, -> { order(:id).preload(:user) }, :class_name => "DiaryComment"
   has_many :visible_comments, -> { joins(:user).where(:visible => true, :users => { :status => %w(active confirmed) }).order(:id) }, :class_name => "DiaryComment"
-  has_many :subscriptions, :class_name => 'DiaryEntrySubscription'
+  has_many :subscriptions, :class_name => "DiaryEntrySubscription"
   has_many :subscribers, :through => :subscriptions, :source => :user
 
   scope :visible, -> { where(:visible => true) }