Class: FileManager
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- FileManager
- Defined in:
- app/models/file_manager.rb
Overview
File Manager Model
Class Method Summary collapse
-
.used_in(file) ⇒ Object
Used In static method.
Class Method Details
.used_in(file) ⇒ Object
Used In static method
@return: [List] List of instances of models entities which use this file (Instances entities list)
17 18 19 |
# File 'app/models/file_manager.rb', line 17 def self.used_in(file) FileManager.find_all_by_file(file).map(&:entity) end |