Class: Ecm::Files::Folder
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Ecm::Files::Folder
- 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_count ⇒ Object
15 16 17 |
# File 'app/models/ecm/files/folder.rb', line 15 def assets_count assets.count end |
#human ⇒ Object
11 12 13 |
# File 'app/models/ecm/files/folder.rb', line 11 def human "#{self.class.model_name.human}: #{I18n.l(created_at)}" end |