#240 Internal server error, redmine 2.5.1-devel.13064, PostgreSQL, dmsf 1.4.8-devel

This commit is contained in:
Karel Picman 2014-04-07 13:39:19 +02:00
parent 13cc1b4bc2
commit 7639671e27

View File

@ -24,7 +24,7 @@ class DmsfLink < ActiveRecord::Base
validates :name, :presence => true
validates :target_id, :presence => true
validates_length_of :name, :maximum => 255
scope :visible, :conditions => ['deleted = ?', false]
scope :visible, where(:deleted => false)
def target_folder_id
if self.target_type == DmsfFolder.model_name