app/models/polymorphic/task.rb in fat_free_crm-0.13.3 vs app/models/polymorphic/task.rb in fat_free_crm-0.13.4
- old
+ new
@@ -61,10 +61,10 @@
scope :tracked_by, ->(user) {
includes(:assignee).
where('user_id = ? OR assigned_to = ?', user.id, user.id)
}
- # Show opportunities which either belong to the user and are unassigned, or are assigned to the user
+ # Show tasks which either belong to the user and are unassigned, or are assigned to the user
scope :visible_on_dashboard, ->(user) {
where('(user_id = :user_id AND assigned_to IS NULL) OR assigned_to = :user_id', :user_id => user.id).where('completed_at IS NULL')
}
scope :by_due_at, -> {