ActionView::Template::Error: undefined method 'visible?' for <DmsfFileRevision
This commit is contained in:
parent
7222b8bf4b
commit
8efdf95ce0
@ -80,6 +80,10 @@ class DmsfFileRevision < ActiveRecord::Base
|
|||||||
validates :description, length: { maximum: 1.kilobyte }
|
validates :description, length: { maximum: 1.kilobyte }
|
||||||
validates :size, dmsf_max_file_size: true
|
validates :size, dmsf_max_file_size: true
|
||||||
|
|
||||||
|
def visible?
|
||||||
|
deleted == STATUS_ACTIVE
|
||||||
|
end
|
||||||
|
|
||||||
def project
|
def project
|
||||||
dmsf_file.project if dmsf_file
|
dmsf_file.project if dmsf_file
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user