Class: Ecm::Files::Folder

Inherits:
ApplicationRecord show all
Includes:
ActsAsPublished::ActiveRecord, FileDetails
Defined in:
app/models/ecm/files/folder.rb

Defined Under Namespace

Modules: FileDetails

Instance Method Summary collapse

Instance Method Details

#assets_countObject



15
16
17
# File 'app/models/ecm/files/folder.rb', line 15

def assets_count
  assets.count
end

#humanObject



11
12
13
# File 'app/models/ecm/files/folder.rb', line 11

def human
  "#{self.class.model_name.human}: #{I18n.l(created_at)}"
end